diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2018-05-02 15:45:28 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-05-02 15:45:28 +0000 |
| commit | 6d944109144acdfdba7caf6fd1a29cbbff0f4628 (patch) | |
| tree | 0004f17c954ab995661a4f4443c4c3d60e889ec7 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | f1fadea5cec7e3b49de653c648e1a63436513894 (diff) | |
[OPENMP] Support C++ member functions in the device constructs.
Added correct emission of the C++ member functions for the device
function when they are used in the device constructs.
llvm-svn: 331365
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 063b9be4cd02..6e3747a188b9 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2398,7 +2398,7 @@ llvm::Constant *CodeGenModule::GetOrCreateLLVMFunction( if (const FunctionDecl *FD = cast_or_null<FunctionDecl>(D)) { // For the device mark the function as one that should be emitted. if (getLangOpts().OpenMPIsDevice && OpenMPRuntime && - !OpenMPRuntime->markAsGlobalTarget(FD) && FD->isDefined() && + !OpenMPRuntime->markAsGlobalTarget(GD) && FD->isDefined() && !DontDefer && !IsForDefinition) addDeferredDeclToEmit(GD); |
