getTrue/getFalse were moved back to ConstantInt

Requires LLVM >= r77685
This commit is contained in:
Benjamin Kramer
2009-07-31 19:11:07 +02:00
parent d5d3ecdb05
commit 0a1d467ac7
3 changed files with 8 additions and 8 deletions

View File

@@ -226,7 +226,7 @@ namespace {
return false;
if (ConstantExpr::getOr(hasDestructor, hasCustomDelete)
!= A.M.getContext().getFalse())
!= ConstantInt::getFalse(A.M.getContext()))
return false;
Ty = MD_GetElement(node, CD_BodyType)->getType();
@@ -307,7 +307,7 @@ static void RemoveCall(CallSite CS, const Analysis& A) {
// Create a "conditional" branch that -simplifycfg can clean up, so we
// can keep using the DominatorTree without updating it.
BranchInst::Create(Invoke->getNormalDest(), Invoke->getUnwindDest(),
A.M.getContext().getTrue(), Invoke->getParent());
ConstantInt::getTrue(A.M.getContext()), Invoke->getParent());
}
// Remove the runtime call.
if (A.CGNode)