[clang] [CIR] Upstream support for variable length arrays (PR #163297)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 14 09:10:35 PDT 2025
================
@@ -696,6 +728,16 @@ struct DestroyObject final : EHScopeStack::Cleanup {
cgf.emitDestroy(addr, type, destroyer);
}
};
+
+struct CallStackRestore final : EHScopeStack::Cleanup {
+ Address stack;
+ CallStackRestore(Address stack) : stack(stack) {}
+ void emit(CIRGenFunction &cgf) override {
+ auto loc = stack.getPointer().getLoc();
----------------
AmrDeveloper wrote:
```suggestion
mlir::Location loc = stack.getPointer().getLoc();
```
https://github.com/llvm/llvm-project/pull/163297
More information about the cfe-commits
mailing list