Small fixes to eliminate compiler warnings when using clang

This commit is contained in:
Matt Pharr
2013-01-06 12:10:54 -08:00
parent 63dd7d9859
commit 81dbd504aa
3 changed files with 4 additions and 4 deletions

View File

@@ -549,7 +549,7 @@ lValuesAreEqual(llvm::Value *v0, llvm::Value *v1,
llvm::CastInst *cast1 = llvm::dyn_cast<llvm::CastInst>(v1);
if (cast0 != NULL && cast1 != NULL) {
if (cast0->getOpcode() != cast1->getOpcode())
return NULL;
return false;
return lValuesAreEqual(cast0->getOperand(0), cast1->getOperand(0),
seenPhi0, seenPhi1);
}