================
@@ -3488,6 +3488,19 @@ static mlir::ParseResult parseTryHandlerRegions(
   return mlir::success();
 }
 
+//===----------------------------------------------------------------------===//
+// EhTypeIdOp
+//===----------------------------------------------------------------------===//
+
+LogicalResult
+cir::EhTypeIdOp::verifySymbolUses(SymbolTableCollection &symbolTable) {
+  Operation *op = symbolTable.lookupNearestSymbolFrom(*this, getTypeSymAttr());
+  if (!isa<GlobalOp>(op))
+    return emitOpError("'")
----------------
AmrDeveloper wrote:

I updated `isa` to be `isa_and_nonnull` to not crash the verifier when 
referencing non exist symbol

https://github.com/llvm/llvm-project/pull/172558
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to