summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2015-03-19 18:58:18 +0000
committerArtem Belevich <tra@google.com>2015-03-19 18:58:18 +0000
commitf3d3db65de4e2937cd2efa3de984b2d35c9ec5c0 (patch)
treebe01fae51b55ba2ec3ce59dd8c98133f5dadd23d /clang/lib/CodeGen/CodeGenModule.cpp
parent461c0c693421fe7fb37da598632fca9c02c4c5d1 (diff)
downloadbcm5719-llvm-f3d3db65de4e2937cd2efa3de984b2d35c9ec5c0.tar.gz
bcm5719-llvm-f3d3db65de4e2937cd2efa3de984b2d35c9ec5c0.zip
Remove .CUDAIsDevice flags from CodeGenOpts as it's already
available in LangOpts. Differential Revision: http://reviews.llvm.org/D8385 llvm-svn: 232749
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 8181e68a397..d1da069437a 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1340,7 +1340,7 @@ void CodeGenModule::EmitGlobal(GlobalDecl GD) {
// If this is CUDA, be selective about which declarations we emit.
if (LangOpts.CUDA) {
- if (CodeGenOpts.CUDAIsDevice) {
+ if (LangOpts.CUDAIsDevice) {
if (!Global->hasAttr<CUDADeviceAttr>() &&
!Global->hasAttr<CUDAGlobalAttr>() &&
!Global->hasAttr<CUDAConstantAttr>() &&
@@ -1909,7 +1909,7 @@ CharUnits CodeGenModule::GetTargetTypeStoreSize(llvm::Type *Ty) const {
unsigned CodeGenModule::GetGlobalVarAddressSpace(const VarDecl *D,
unsigned AddrSpace) {
- if (LangOpts.CUDA && CodeGenOpts.CUDAIsDevice) {
+ if (LangOpts.CUDA && LangOpts.CUDAIsDevice) {
if (D->hasAttr<CUDAConstantAttr>())
AddrSpace = getContext().getTargetAddressSpace(LangAS::cuda_constant);
else if (D->hasAttr<CUDASharedAttr>())
OpenPOWER on IntegriCloud