[PATCH] D34235: [OpenCL] Fix OpenCL and SPIR version metadata generation.
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 16 00:39:50 PDT 2017
ahatanak added inline comments.
================
Comment at: lib/CodeGen/CodeGenModule.cpp:516
+ llvm::LLVMContext &Ctx = TheModule.getContext();
+ llvm::Type *Int32Ty = llvm::Type::getInt32Ty(Ctx);
+ // SPIR v2.0 s2.12 - The SPIR version used by the module is stored in the
----------------
CodeGenTypeCache (CodeGenModule's base class) has member Int32Ty, so I don't think you need to call getInt32Ty here?
https://reviews.llvm.org/D34235
More information about the cfe-commits
mailing list