================
@@ -7360,8 +7360,14 @@ ExprResult SemaOpenMP::ActOnOpenMPCall(ExprResult Call,
Scope *Scope,
return Call;
FunctionDecl *CalleeFnDecl = CE->getDirectCallee();
- if (!CalleeFnDecl)
+
+ // Mark indirect calls inside target regions, to allow for insertion of
+ // __llvm_omp_indirect_call_lookup calls during codegen.
+ if (!CalleeFnDecl) {
+ if (isInOpenMPTargetExecutionDirective())
+ getASTContext().OMPTargetCalls.insert(CE);
----------------
alexey-bataev wrote:
Not sure it will work with modules/precompiled headers
https://github.com/llvm/llvm-project/pull/159857
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits