summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-20 00:36:08 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-10-20 00:36:08 +0000
commita25ad0685ab8ea270c44df06abe4d6ac081cdaae (patch)
tree1425e8201c110206be302c28e3688a72252f1d53 /llvm/lib/CodeGen/AsmPrinter/WinException.cpp
parent1ea1fd6b34002be8f4e1f9feee680e0c21a2d901 (diff)
downloadbcm5719-llvm-a25ad0685ab8ea270c44df06abe4d6ac081cdaae.tar.gz
bcm5719-llvm-a25ad0685ab8ea270c44df06abe4d6ac081cdaae.zip
AsmPrinter: Remove implicit ilist iterator conversion, NFC
llvm-svn: 250776
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/WinException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/WinException.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
index fab5b3a59eb..6387e981301 100644
--- a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
@@ -939,7 +939,7 @@ void WinException::emitCLRExceptionTable(const MachineFunction *MF) {
"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(const MachineFunction *MF) {
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;
}
}
OpenPOWER on IntegriCloud