Move getTrue() and getFalse() to 2.5-like APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77685 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp
index ea81081..f0ffb47 100644
--- a/lib/Transforms/Scalar/GVN.cpp
+++ b/lib/Transforms/Scalar/GVN.cpp
@@ -1385,9 +1385,11 @@
BasicBlock* falseSucc = BI->getSuccessor(1);
if (trueSucc->getSinglePredecessor())
- localAvail[trueSucc]->table[condVN] = trueSucc->getContext().getTrue();
+ localAvail[trueSucc]->table[condVN] =
+ ConstantInt::getTrue(trueSucc->getContext());
if (falseSucc->getSinglePredecessor())
- localAvail[falseSucc]->table[condVN] = trueSucc->getContext().getFalse();
+ localAvail[falseSucc]->table[condVN] =
+ ConstantInt::getFalse(trueSucc->getContext());
return false;