[llvm] r203979 - MC: don't create a backtrace for diagnostics.

Jim Grosbach grosbach at apple.com
Fri Mar 14 15:41:58 PDT 2014


Author: grosbach
Date: Fri Mar 14 17:41:58 2014
New Revision: 203979

URL: http://llvm.org/viewvc/llvm-project?rev=203979&view=rev
Log:
MC: don't create a backtrace for diagnostics.

For better or worse, this is currently the normal error reporting path
when dealing with backend errors from inline assembly. It's not just
internal compiler issues that come through here, so we shouldn't be
creating a backtrace on this path.

rdar://16329947

Modified:
    llvm/trunk/lib/MC/MCContext.cpp

Modified: llvm/trunk/lib/MC/MCContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCContext.cpp?rev=203979&r1=203978&r2=203979&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCContext.cpp (original)
+++ llvm/trunk/lib/MC/MCContext.cpp Fri Mar 14 17:41:58 2014
@@ -353,7 +353,7 @@ void MCContext::FatalError(SMLoc Loc, co
   // If we have a source manager and a location, use it. Otherwise just
   // use the generic report_fatal_error().
   if (!SrcMgr || Loc == SMLoc())
-    report_fatal_error(Msg);
+    report_fatal_error(Msg, false);
 
   // Use the source manager to print the message.
   SrcMgr->PrintMessage(Loc, SourceMgr::DK_Error, Msg);





More information about the llvm-commits mailing list