Remove .CUDAIsDevice flags from CodeGenOpts as it's already
available in LangOpts. Differential Revision: http://reviews.llvm.org/D8385 llvm-svn: 232749
This commit is contained in:
@@ -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) &&
|
||||
|
||||
Reference in New Issue
Block a user