From 8780ecbbacc19d595c6c92348d2d5d951817fde5 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Wed, 2 Apr 2008 17:04:45 +0000 Subject: Cosmetic changes per EH patch review feedback. llvm-svn: 49096 --- llvm/lib/CodeGen/DwarfWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/DwarfWriter.cpp') diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp index 0fa956e0972..010dfa0a793 100644 --- a/llvm/lib/CodeGen/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/DwarfWriter.cpp @@ -3415,7 +3415,7 @@ public: void BeginFunction(MachineFunction *MF) { this->MF = MF; shouldEmitTable = shouldEmitMoves = false; - if (TAI->doesSupportExceptionHandling()) { + if (MMI && TAI->doesSupportExceptionHandling()) { // Map all labels and get rid of any dead landing pads. MMI->TidyLandingPads(); -- cgit v1.2.3