[PATCH] D135818: [clang] Update ASM goto documentation to reflect how Clang differs from GCC

Bill Wendling via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 12 15:46:58 PDT 2022


void added inline comments.


================
Comment at: clang/docs/LanguageExtensions.rst:1555
+  on the indirect branch may result in undefined behavior and should be
+  avoided.
 
----------------
shafik wrote:
> It would be helpful to provide an example of what is not supported. If you can provide an example that actually results in undefined behavior that would be even better.
I added an example, but it's hard to determine whether a given piece of code will have undefined behavior as it sometimes occurs only on a specific optimization level.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135818/new/

https://reviews.llvm.org/D135818



More information about the cfe-commits mailing list