mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
For PR1205:
Remove ConstantInt from ConstantRange interface and adjust its users to compensate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34758 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1018,7 +1018,10 @@ void CEE::ComputeReplacements(RegionInfo &RI) {
|
||||
|
||||
// If we know that this value is a particular constant, set Replacement to
|
||||
// the constant...
|
||||
Value *Replacement = VI.getBounds().getSingleElement();
|
||||
Value *Replacement = 0;
|
||||
const APInt * Rplcmnt = VI.getBounds().getSingleElement();
|
||||
if (Rplcmnt)
|
||||
Replacement = ConstantInt::get(*Rplcmnt);
|
||||
|
||||
// If this value is not known to be some constant, figure out the lowest
|
||||
// rank value that it is known to be equal to (if anything).
|
||||
|
||||
Reference in New Issue
Block a user