diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-11-03 16:50:11 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-11-03 16:50:11 +0000 |
| commit | e1d5cd9f4862c2a568dc7c6cc7ede308484fac92 (patch) | |
| tree | 70adfd693df27dc4f9baf09e8f5c740c02bafcd0 /llvm/lib/Transforms | |
| parent | 462a4aa787de7c72fc9ff33ee96fa25527d5de48 (diff) | |
| download | bcm5719-llvm-e1d5cd9f4862c2a568dc7c6cc7ede308484fac92.tar.gz bcm5719-llvm-e1d5cd9f4862c2a568dc7c6cc7ede308484fac92.zip | |
fix a subtle bug I introduced when refactoring SCCP. Testcase
to follow.
llvm-svn: 85903
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index fb6101b0b99..2ee4bbc95b1 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -107,7 +107,7 @@ public: /// markConstant - Return true if this is a change in status. bool markConstant(Constant *V) { - if (isConstant()) { + if (getLatticeValue() == constant) { // Constant but not forcedconstant. assert(getConstant() == V && "Marking constant with different value"); return false; } |

