Skip to content

Commit c6ed568

Browse files
more cleanup.
1 parent e74e7bd commit c6ed568

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,8 @@ static void removeBufferizationAttributes(BlockArgument bbArg) {
285285
static func::FuncOp
286286
getCalledFunction(func::CallOp callOp,
287287
mlir::SymbolTableCollection &symbolTable) {
288-
SymbolRefAttr sym =
289-
llvm::dyn_cast_if_present<SymbolRefAttr>(callOp.getCallableForCallee());
290-
if (!sym)
291-
return nullptr;
292288
return dyn_cast_or_null<func::FuncOp>(
293-
symbolTable.lookupNearestSymbolFrom(callOp, sym));
289+
callOp.resolveCallableInTable(&symbolTable));
294290
}
295291

296292
/// Return "true" if the given function signature has tensor semantics.

0 commit comments

Comments
 (0)