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:
Reid Spencer
2007-02-28 19:57:34 +00:00
parent f57fc81fae
commit 581b0d453a
6 changed files with 50 additions and 76 deletions

View File

@@ -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).