When an object is allocated in a non-default address space we do not
need to check for a constructor if it is not initialized and has a
trivial constructor (which we won't call then).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I misread this as implying loaded_uninitialized for addrspace globals, but actually it's a straightforward oversight from the original implementation. Thanks!
clang/test/CodeGen/attr-loader-uninitialized.c | ||
---|---|---|
21 | addrspace(0) presumably works the same way. Iirc addrspace(0) is different from no addrspace specified. |
Comment Actions
Diff now shows unrelated changed (// C++ for OpenCL v1.0 s2.4:....), maybe needs to be rebased?
edit: commit itself looks clean, think we're good
addrspace(0) presumably works the same way. Iirc addrspace(0) is different from no addrspace specified.