From 79a0d80d51221ee197a249a1927f67a8fe0a2f53 Mon Sep 17 00:00:00 2001 From: Stepan Dyatkovskiy Date: Sat, 19 May 2012 13:14:30 +0000 Subject: Ordinary PR1255 patch: DifferenceEngine and CPPBackend adopted to the new SwitchInst methods. llvm-svn: 157112 --- llvm/lib/Target/CppBackend/CPPBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp') diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 69f0ff87eda..9f9545559c9 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -1105,7 +1105,7 @@ void CppWriter::printInstruction(const Instruction *I, nl(Out); for (SwitchInst::ConstCaseIt i = SI->case_begin(), e = SI->case_end(); i != e; ++i) { - const ConstantInt* CaseVal = i.getCaseValue(); + const ConstantRangesSet CaseVal = i.getCaseValueEx(); const BasicBlock *BB = i.getCaseSuccessor(); Out << iName << "->addCase(" << getOpName(CaseVal) << ", " -- cgit v1.2.3