================
@@ -216,8 +216,7 @@ void CIRGenFunction::emitAndUpdateRetAlloca(QualType type,
mlir::Location loc,
void CIRGenFunction::declare(mlir::Value addrVal, const Decl *var, QualType ty,
mlir::Location loc, CharUnits alignment,
bool isParam) {
- const auto *namedVar = dyn_cast_or_null<NamedDecl>(var);
- assert(namedVar && "Needs a named decl");
+ assert(mlir::isa<NamedDecl>(var) && "Needs a named decl");
----------------
xlauko wrote:
This is not mlir thing:
```suggestion
assert(isa<NamedDecl>(var) && "Needs a named decl");
```
https://github.com/llvm/llvm-project/pull/151412
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits