mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
fix a subtle bug I introduced when refactoring SCCP. Testcase
to follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b908f8ad6a
commit
c175e5de2d
@ -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
Block a user