We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f62f0d0 commit 6cfc330Copy full SHA for 6cfc330
llvm/tools/sycl-post-link/sycl-post-link.cpp
@@ -311,7 +311,10 @@ static HasAssertStatus hasAssertInFunctionCallGraph(llvm::Function *Func) {
311
FuncCallStack.push_back(F);
312
313
bool HasIndirectlyCalledAttr = false;
314
- if (F->hasFnAttribute("referenced-indirectly")) {
+ if (F->hasFnAttribute("referenced-indirectly") ||
315
+ std::find(isIndirectlyCalledInGraph.begin(),
316
+ isIndirectlyCalledInGraph.end(),
317
+ F) != isIndirectlyCalledInGraph.end()) {
318
HasIndirectlyCalledAttr = true;
319
isIndirectlyCalledInGraph.push_back(F);
320
}
0 commit comments