[dfsan] Simplify code after r197677.

llvm-svn: 197679
This commit is contained in:
Evgeniy Stepanov 2013-12-19 14:37:03 +00:00
parent cf3b4836bd
commit a284e559d7
1 changed files with 13 additions and 18 deletions

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