Mercurial > projects > ldc
diff gen/passes/GarbageCollect2Stack.cpp @ 1559:06d5cc873350
getTrue/getFalse were moved back to ConstantInt
Requires LLVM >= r77685
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Fri, 31 Jul 2009 19:11:07 +0200 |
parents | 3adcb70700cb |
children | 8d086d552909 |
line wrap: on
line diff
--- a/gen/passes/GarbageCollect2Stack.cpp Fri Jul 31 11:28:31 2009 +0200 +++ b/gen/passes/GarbageCollect2Stack.cpp Fri Jul 31 19:11:07 2009 +0200 @@ -226,7 +226,7 @@ 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 @@ // 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)