[dfsan] Simplify code after r197677.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evgeniy Stepanov 2013-12-19 14:37:03 +00:00
parent a7eb2b83ba
commit de011a5f90

View File

@ -837,7 +837,6 @@ Value *DataFlowSanitizer::combineShadows(Value *V1, Value *V2,
IRBuilder<> IRB(Pos);
BasicBlock *Head = Pos->getParent();
Value *Ne = IRB.CreateICmpNE(V1, V2);
if (Ne) {
BranchInst *BI = cast<BranchInst>(SplitBlockAndInsertIfThen(
Ne, Pos, /*Unreachable=*/false, ColdCallWeights));
IRBuilder<> ThenIRB(BI);
@ -852,10 +851,6 @@ Value *DataFlowSanitizer::combineShadows(Value *V1, Value *V2,
Phi->addIncoming(V1, Head);
Pos = Phi;
return Phi;
} else {
assert(0 && "todo");
return 0;
}
}
// A convenience function which folds the shadows of each of the operands