[PATCH] D35890: [Diagnostics][Inline-Asm]Allow targets to provide elaborations regarding failures resulted from (GNU-inline-asm) modifiers' apply
coby via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 14 11:39:39 PDT 2017
coby 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());
----------------
arsenm wrote:
> I would expect this does the right thing anyway if you just << ErrorMsg even when empty
You right, thx.
will update
Repository:
rL LLVM
https://reviews.llvm.org/D35890
More information about the llvm-commits
mailing list