nickdesaulniers added a comment.

> Use -Wuninitialized.

D'oh!



================
Comment at: clang/lib/Analysis/UninitializedValues.cpp:856
   if (!as->isAsmGoto())
     return;
 
----------------
nickdesaulniers wrote:
> Should we mark the vals `MayUninitialized` here, rather than below? Then I 
> think we can remove the `isAsmGoto` check you added in `getUninitUse`?
Bumping comment.


================
Comment at: clang/test/Analysis/uninit-asm-goto.cpp:57
+  return y;
+indirect:
+  return -2;
----------------
I think if you left out `indirect`, it would be clearer what this test is 
testing.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71314



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to