[PATCH] D114848: [Analysis] Ignore casts and unary ops for uninitialized values

Nathan Chancellor via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 1 09:00:06 PST 2021


nathanchance added a comment.

I tested the problematic Linux kernel configuration that uncovered this issue with this patch and the issue was resolved. I tested an x86_64 allmodconfig build and did not see any warnings.



================
Comment at: clang/lib/Analysis/UninitializedValues.cpp:594
           // If the predecessor's terminator is an "asm goto" that initializes
-          // the variable, then it won't be counted as "initialized" on the
-          // non-fallthrough paths.
+          // the variable, then it's don't count it as "initialized" on the
+          // indirect paths.
----------------
Should "it's don't count" be "don't count"?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114848



More information about the cfe-commits mailing list