[llvm] r250776 - AsmPrinter: Remove implicit ilist iterator conversion, NFC
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 19 17:36:08 PDT 2015
Author: dexonsmith
Date: Mon Oct 19 19:36:08 2015
New Revision: 250776
URL: http://llvm.org/viewvc/llvm-project?rev=250776&view=rev
Log:
AsmPrinter: Remove implicit ilist iterator conversion, NFC
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp?rev=250776&r1=250775&r2=250776&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp Mon Oct 19 19:36:08 2015
@@ -939,7 +939,7 @@ void WinException::emitCLRExceptionTable
"ill-formed state numbering");
}
// Map the main function to the NullState.
- HandlerStates[MF->begin()] = NullState;
+ HandlerStates[&MF->front()] = NullState;
// Write out a sentinel indicating the end of the standard (Windows) xdata
// and the start of the additional (CLR) info.
@@ -973,12 +973,12 @@ void WinException::emitCLRExceptionTable
FuncletEnd = MF->begin(),
End = MF->end();
FuncletStart != End; FuncletStart = FuncletEnd) {
- int FuncletState = HandlerStates[FuncletStart];
+ int FuncletState = HandlerStates[&*FuncletStart];
// Find the end of the funclet
MCSymbol *EndSymbol = FuncEndSym;
while (++FuncletEnd != End) {
if (FuncletEnd->isEHFuncletEntry()) {
- EndSymbol = getMCSymbolForMBB(Asm, FuncletEnd);
+ EndSymbol = getMCSymbolForMBB(Asm, &*FuncletEnd);
break;
}
}
More information about the llvm-commits
mailing list