[Mlir-commits] [mlir] Fix a nullptr dereferencing in a `FuncBufferizableOpInterfaceImpl.cpp::getCalledFunction` (PR #150518)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Jul 26 06:26:13 PDT 2025


================
@@ -90,8 +90,9 @@ static FuncOp getCalledFunction(CallOpInterface callOp,
                                 const AnalysisState &state) {
   auto &oneShotAnalysisState = static_cast<const OneShotAnalysisState &>(state);
 
-  if (auto *funcAnalysisState =
-          oneShotAnalysisState.getExtension<FuncAnalysisState>()) {
+  auto *funcAnalysisState =
----------------
paul0403 wrote:

I think you are right, I need to investigate the segfault more. Maybe this is not where the root cause is...

https://github.com/llvm/llvm-project/pull/150518


More information about the Mlir-commits mailing list