llvm.org GIT mirror llvm / cee7471
Remove spurious cast of nullptr. NFC. Conversion rules allow automatic casting of nullptr to any pointer type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302780 91177308-0d34-0410-b5e6-96231b3b80d8 Serge Guelton 3 years ago
5 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
32133213 CurrList(WorkList.begin() + PrevSize, WorkList.end());
32143214 if (copyCoalesceWorkList(CurrList))
32153215 WorkList.erase(std::remove(WorkList.begin() + PrevSize, WorkList.end(),
3216 (MachineInstr*)nullptr), WorkList.end());
3216 nullptr), WorkList.end());
32173217 }
32183218
32193219 void RegisterCoalescer::coalesceLocals() {
346346 MutexGuard G(*TermColorMutex);
347347
348348 int errret = 0;
349 if (setupterm((char *)nullptr, fd, &errret) != 0)
349 if (setupterm(nullptr, fd, &errret) != 0)
350350 // Regardless of why, if we can't get terminfo, we shouldn't try to print
351351 // colors.
352352 return false;
368368
369369 // Now extract the structure allocated by setupterm and free its memory
370370 // through a really silly dance.
371 struct term *termp = set_curterm((struct term *)nullptr);
371 struct term *termp = set_curterm(nullptr);
372372 (void)del_curterm(termp); // Drop any errors here.
373373
374374 // Return true if we found a color capabilities for the current terminal.
256256
257257 // Get the instruction that loads the function address from the GOT.
258258 Reg = MO->getReg();
259 Val = (Value*)nullptr;
259 Val = nullptr;
260260 MachineRegisterInfo &MRI = MI.getParent()->getParent()->getRegInfo();
261261 MachineInstr *DefMI = MRI.getVRegDef(Reg);
262262
178178 else
179179 GO = new GlobalVariable(
180180 *M, GA->getValueType(), false, GlobalValue::ExternalLinkage,
181 (Constant *)nullptr, "", (GlobalVariable *)nullptr,
181 nullptr, "", nullptr,
182182 GA->getThreadLocalMode(), GA->getType()->getAddressSpace());
183183 GO->takeName(GA);
184184 GA->replaceAllUsesWith(GO);
9595 else
9696 GV = new GlobalVariable(
9797 *New, I->getValueType(), false, GlobalValue::ExternalLinkage,
98 (Constant *)nullptr, I->getName(), (GlobalVariable *)nullptr,
98 nullptr, I->getName(), nullptr,
9999 I->getThreadLocalMode(), I->getType()->getAddressSpace());
100100 VMap[&*I] = GV;
101101 // We do not copy attributes (mainly because copying between different