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 2682f90 commit 7897636Copy full SHA for 7897636
llvm/lib/Target/SPIRV/SPIRVUtils.cpp
@@ -87,8 +87,7 @@ FunctionType *getOriginalFunctionType(const Function &F) {
87
88
FunctionType *getOriginalFunctionType(const CallBase &CB) {
89
return extractFunctionTypeFromMetadata(
90
- CB.getParent()->getParent()->getParent()->getNamedMetadata(
91
- "spv.mutated_callsites"),
+ CB.getModule()->getNamedMetadata("spv.mutated_callsites"),
92
CB.getFunctionType(), CB.getName());
93
}
94
} // Namespace SPIRV
0 commit comments