[PATCH] D71435: [WIP] [Attributor] Function level undefined behavior attribute
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 15 11:42:59 PST 2019
jdoerfert added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:1994
+ noUBLoads.insert(I);
+ }
+ }
----------------
jdoerfert wrote:
> FWIW: Branching on an uninitialized local variable is UB.
For now just check if the pointer is a constant null and if null is not dereferenceable
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71435/new/
https://reviews.llvm.org/D71435
More information about the llvm-commits
mailing list