[PATCH] D25305: [OpenCL] Setting constant address space for array initializers
Anastasia Stulova via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 19 10:34:25 PDT 2016
Anastasia added inline comments.
================
Comment at: lib/CodeGen/CGDecl.cpp:1272
+ if (getLangOpts().OpenCL) {
+ UA = llvm::GlobalValue::UnnamedAddr::None;
+ AS = CGM.getContext().getTargetAddressSpace(LangAS::opencl_constant);
----------------
Why this change?
https://reviews.llvm.org/D25305
More information about the cfe-commits
mailing list