[PATCH] D116059: [Clang][CFG] check children statements of asm goto
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 20 16:21:11 PST 2021
efriedma added inline comments.
Comment at: clang/lib/Analysis/UninitializedValues.cpp:826
+ // it as potentially uninitialized for those cases where it's used on
+ // an indirect path, where it's not guaranteed to be defined.
vals[VD] = MayUninitialized;
The old and the new code here seem to be doing very different things. It isn't clear why.
Actually, I'm not sure why we're checking whether the variable is initialized. Whether the variable is initialized going into the inline asm isn't really related to whether it's initialized when we exit the inline asm. For register outputs, the output isn't even in the same register as the old value of the variable.
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the cfe-commits