diff options
author | Silviu Baranga <silviu.baranga@arm.com> | 2016-01-07 15:09:22 +0000 |
---|---|---|
committer | Silviu Baranga <silviu.baranga@arm.com> | 2016-01-07 15:09:22 +0000 |
commit | c67ec3f71612278b93e84d46dab4677aa969bc60 (patch) | |
tree | 8fdaf25180e197eb22a0c0803d64247d0b9c7668 /llvm/lib/Transforms | |
parent | 4324b9b23665c03478ff496389815e2a9103d1e0 (diff) | |
download | bcm5719-llvm-c67ec3f71612278b93e84d46dab4677aa969bc60.tar.gz bcm5719-llvm-c67ec3f71612278b93e84d46dab4677aa969bc60.zip |
Fix build after r257064: we should be returning false, not nullptr
llvm-svn: 257067
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp index 64d55e51f65..09c8d77c538 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -636,7 +636,7 @@ static bool canRewriteGEPAsOffset(Value *Start, Value *Base, if (isa<IntToPtrInst>(V) || isa<PtrToIntInst>(V)) { auto *CI = dyn_cast<CastInst>(V); if (!CI->isNoopCast(DL)) - return nullptr; + return false; if (Explored.count(CI->getOperand(0)) == 0) WorkList.push_back(CI->getOperand(0)); @@ -647,7 +647,7 @@ static bool canRewriteGEPAsOffset(Value *Start, Value *Base, // the original pointer type. We could handle more cases in the // future. if (GEP->getNumIndices() != 1 || !GEP->isInBounds()) - return nullptr; + return false; if (Explored.count(GEP->getOperand(0)) == 0) WorkList.push_back(GEP->getOperand(0)); |