[PATCH] D133036: [InstCombine] Treat passing undef to noundef params as UB
Nikita Popov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 15 13:32:15 PDT 2022
nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.
The default switch has happened, so unblocking this.
================
Comment at: clang/test/CodeGenOpenCL/overload.cl:23
generic int *local *genloc;
generic int *global *genglob;
+ // CHECK-DAG: call spir_func void @_Z3fooPU3AS1iS0_(i32 addrspace(1)* noundef {{.*}}, i32 addrspace(1)* noundef {{.*}})
----------------
Maybe initialize the relevant variables instead? I'd assume just NULL would work here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133036/new/
https://reviews.llvm.org/D133036
More information about the cfe-commits
mailing list