summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegisterCoalescer.cpp
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@quarkslab.com>2017-05-11 08:53:00 +0000
committerSerge Guelton <sguelton@quarkslab.com>2017-05-11 08:53:00 +0000
commitf4dc59ba8e00f12920391427591169dc616087ed (patch)
treefaf1cdf98a266ad970ee1d533edbc1f1f685ca66 /llvm/lib/CodeGen/RegisterCoalescer.cpp
parent1b421c259f7b1d0508188dca4cf7e098548ba360 (diff)
downloadbcm5719-llvm-f4dc59ba8e00f12920391427591169dc616087ed.tar.gz
bcm5719-llvm-f4dc59ba8e00f12920391427591169dc616087ed.zip
Remove spurious cast of nullptr. NFC.
Conversion rules allow automatic casting of nullptr to any pointer type. llvm-svn: 302780
Diffstat (limited to 'llvm/lib/CodeGen/RegisterCoalescer.cpp')
-rw-r--r--llvm/lib/CodeGen/RegisterCoalescer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp
index bf44ee8453b..1803ea2b924 100644
--- a/llvm/lib/CodeGen/RegisterCoalescer.cpp
+++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp
@@ -3214,7 +3214,7 @@ RegisterCoalescer::copyCoalesceInMBB(MachineBasicBlock *MBB) {
CurrList(WorkList.begin() + PrevSize, WorkList.end());
if (copyCoalesceWorkList(CurrList))
WorkList.erase(std::remove(WorkList.begin() + PrevSize, WorkList.end(),
- (MachineInstr*)nullptr), WorkList.end());
+ nullptr), WorkList.end());
}
void RegisterCoalescer::coalesceLocals() {
OpenPOWER on IntegriCloud