aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-11 22:11:07 +0000
committerChris Lattner <sabre@nondot.org>2002-03-11 22:11:07 +0000
commit0fce76a009bccfa427575643a2b793fd53e8aff1 (patch)
treea69d8e71f8eca22bbf44c91344c438cf449b5afa /include/llvm/Transforms
parent81ba70445fce530384a8e7e36be56b5cb804fc30 (diff)
Fix bug: test/Regression/Other/2002-03-11-ConstPropCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/Scalar/ConstantProp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Transforms/Scalar/ConstantProp.h b/include/llvm/Transforms/Scalar/ConstantProp.h
index 3a8fa5b6d9..0da13e9fdb 100644
--- a/include/llvm/Transforms/Scalar/ConstantProp.h
+++ b/include/llvm/Transforms/Scalar/ConstantProp.h
@@ -23,9 +23,11 @@ bool doConstantPropogation(BasicBlock *BB, BasicBlock::iterator &I);
// ConstantFoldTerminator - If a terminator instruction is predicated on a
// constant value, convert it into an unconditional branch to the constant
-// destination.
+// destination. This is a nontrivial operation because the successors of this
+// basic block must have their PHI nodes updated.
//
-bool ConstantFoldTerminator(TerminatorInst *T);
+bool ConstantFoldTerminator(BasicBlock *BB, BasicBlock::iterator &I,
+ TerminatorInst *T);
//===----------------------------------------------------------------------===//