X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FVMCore%2FAsmWriter.cpp;h=7b39efb7c7a0fd878ffa9f36b46c5c23b83f6036;hp=c3a352fa0d99f82e9be329aab8c4f650bef4a72b;hb=3d3abe0852d5f499bed7ab014519dd582a0a795d;hpb=92a3e9d63a4fd408fce76c1b2ba71b5a7fb04b8a diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index c3a352fa0d9..7b39efb7c7a 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1731,7 +1731,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) { Out << ", "; writeOperand(SI.getDefaultDest(), true); Out << " ["; - for (SwitchInst::CaseIt i = SI.caseBegin(), e = SI.caseEnd(); + for (SwitchInst::CaseIt i = SI.case_begin(), e = SI.case_end(); i != e; ++i) { Out << "\n "; writeOperand(i.getCaseValue(), true);