[PATCH] D49727: [CodeGen] emit inline asm clobber list warnings for reserved

Ties Stuij via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 30 07:26:00 PDT 2018


stuij added inline comments.


================
Comment at: lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp:564
+                "across function calls, and clobbering them may lead to "
+                "unexpected results.";
+    SrcMgr.PrintMessage(Loc, SourceMgr::DK_Warning, Msg);
----------------
efriedma wrote:
> I'm not sure what "may not be preserved across function calls" has to do with this warning.  And I'd prefer "undefined behavior" rather than "unexpected results".
Ah thanks, "across function calls" was a logical typo. That should read "across the asm statement".


https://reviews.llvm.org/D49727





More information about the llvm-commits mailing list