forked from OSchip/llvm-project
fix a subtle bug I introduced when refactoring SCCP. Testcase
to follow. llvm-svn: 85903
This commit is contained in:
parent
462a4aa787
commit
e1d5cd9f48
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue