[PATCH] D35890: [Diagnostics][Inline-Asm]Allow targets to provide elaborations regarding failures resulted from (GNU-inline-asm) modifiers' apply

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 9 13:00:53 PDT 2017


arsenm added inline comments.


================
Comment at: lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp:275-276
         Msg << "invalid operand in inline asm: '" << AsmStr << "'";
+        if (!ErrorMsg.empty())
+          Msg << ErrorMsg;
         MMI->getModule()->getContext().emitError(LocCookie, Msg.str());
----------------
I would expect this does the right thing anyway if you just << ErrorMsg even when empty


Repository:
  rL LLVM

https://reviews.llvm.org/D35890





More information about the llvm-commits mailing list