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

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 27 17:04:17 PDT 2018


efriedma 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);
----------------
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".


https://reviews.llvm.org/D49727





More information about the llvm-commits mailing list