diff options
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Execution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index d54010195d..d4b6ed0003 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -655,8 +655,8 @@ void Interpreter::visitSwitchInst(SwitchInst &I) { for (unsigned n = 0, en = Case.getNumItems(); n != en; ++n) { IntegersSubset::Range r = Case.getItem(n); // FIXME: Currently work with ConstantInt based numbers. - const ConstantInt *LowCI = r.Low.getImplementation(); - const ConstantInt *HighCI = r.High.getImplementation(); + const ConstantInt *LowCI = r.Low.toConstantInt(); + const ConstantInt *HighCI = r.High.toConstantInt(); GenericValue Low = getOperandValue(const_cast<ConstantInt*>(LowCI), SF); GenericValue High = getOperandValue(const_cast<ConstantInt*>(HighCI), SF); if (executeICMP_ULE(Low, CondVal, ElTy).IntVal != 0 && |