Once again fix for LLVM 3.1 TOT API changes

This commit is contained in:
Matt Pharr
2012-03-11 15:04:26 -07:00
parent a69b7a5a01
commit a473046058

View File

@@ -2824,7 +2824,7 @@ void CWriter::visitSwitchInst(SwitchInst &SI) {
Out << ";\n";
#ifdef LLVM_3_1svn
for (SwitchInst::CaseIt i = SI.caseBegin(), e = SI.caseEnd(); i != e; ++i) {
for (SwitchInst::CaseIt i = SI.case_begin(), e = SI.case_end(); i != e; ++i) {
ConstantInt* CaseVal = i.getCaseValue();
BasicBlock* Succ = i.getCaseSuccessor();
#else