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

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 17 15:43:36 PST 2019


nickdesaulniers added a comment.

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;
  }


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