diff options
author | Artem Belevich <tra@google.com> | 2015-03-19 18:58:18 +0000 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2015-03-19 18:58:18 +0000 |
commit | f3d3db65de4e2937cd2efa3de984b2d35c9ec5c0 (patch) | |
tree | be01fae51b55ba2ec3ce59dd8c98133f5dadd23d /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 461c0c693421fe7fb37da598632fca9c02c4c5d1 (diff) | |
download | bcm5719-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/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 7d510d68a5e..dabec15b784 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -870,7 +870,7 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, else if (isa<CXXConstructorDecl>(FD)) EmitConstructorBody(Args); else if (getLangOpts().CUDA && - !CGM.getCodeGenOpts().CUDAIsDevice && + !getLangOpts().CUDAIsDevice && FD->hasAttr<CUDAGlobalAttr>()) CGM.getCUDARuntime().EmitDeviceStubBody(*this, Args); else if (isa<CXXConversionDecl>(FD) && |