Skip to content

Commit 7897636

Browse files
committed
Adopt review suggestion.
1 parent 2682f90 commit 7897636

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/SPIRV/SPIRVUtils.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ FunctionType *getOriginalFunctionType(const Function &F) {
8787

8888
FunctionType *getOriginalFunctionType(const CallBase &CB) {
8989
return extractFunctionTypeFromMetadata(
90-
CB.getParent()->getParent()->getParent()->getNamedMetadata(
91-
"spv.mutated_callsites"),
90+
CB.getModule()->getNamedMetadata("spv.mutated_callsites"),
9291
CB.getFunctionType(), CB.getName());
9392
}
9493
} // Namespace SPIRV

0 commit comments

Comments
 (0)