From 43eb31bfae470b33bab9a6764b98b5e8a0beeda5 Mon Sep 17 00:00:00 2001 From: Stepan Dyatkovskiy Date: Sat, 2 Jun 2012 09:42:43 +0000 Subject: 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 --- lib/ExecutionEngine/Interpreter/Execution.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ExecutionEngine/Interpreter') diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index d4b6ed0003..89c35438ef 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(LowCI), SF); GenericValue High = getOperandValue(const_cast(HighCI), SF); if (executeICMP_ULE(Low, CondVal, ElTy).IntVal != 0 && -- cgit v1.2.3