[PATCH] D71314: Emit a warning if a variable is uninitialized in indirect ASM goto destination.

Bill Wendling via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 17 16:19:09 PST 2019


void added a comment.

In D71314#1788797 <https://reviews.llvm.org/D71314#1788797>, @nickdesaulniers wrote:

> strange, the below test isn't warning for me with this patch applied:
>
>   $ clang -O2 foo.c -c
>   $ cat foo.c
>   int quux(void) {
>     int y;
>     asm volatile goto("ja %l1" : "=r"(y) ::: err);
>     return y;
>   err:
>     return y;
>   }
>


Use `-Wuninitialized`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71314





More information about the cfe-commits mailing list