aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2012-06-02 09:42:43 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2012-06-02 09:42:43 +0000
commit43eb31bfae470b33bab9a6764b98b5e8a0beeda5 (patch)
tree9751b83c2cc411dfc58438db8a03d149e90b720f /lib/ExecutionEngine
parent0fa2b7b90df9a20baf2d14b7bc4fe7db5144efde (diff)
downloadexternal_llvm-43eb31bfae470b33bab9a6764b98b5e8a0beeda5.zip
external_llvm-43eb31bfae470b33bab9a6764b98b5e8a0beeda5.tar.gz
external_llvm-43eb31bfae470b33bab9a6764b98b5e8a0beeda5.tar.bz2
PR1255: case ranges.
IntRange converted from struct to class. So main change everywhere is replacement of ".Low/High" with ".getLow/getHigh()" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157884 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index d4b6ed0..89c3543 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.toConstantInt();
- const ConstantInt *HighCI = r.High.toConstantInt();
+ const ConstantInt *LowCI = r.getLow().toConstantInt();
+ const ConstantInt *HighCI = r.getHigh().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 &&