llvm-project
a11feef2 - [CIR] Make cir.alloca alignment mandatory (#172663)

Commit
73 days ago
[CIR] Make cir.alloca alignment mandatory (#172663) Fixed a crash in `CIRToLLVMAllocaOpLowering` where `cir.alloca` operations without an explicit alignment attribute caused failures. Modified the ODS definition of `cir.alloca` to use `ConfinedAttr<I64Attr, [IntMinValue<0>]>`. This ensures the attribute is always present. Added a regression test in `clang/test/CIR/Lowering/alloca.cir`. --------- Co-authored-by: Sirui Mu <msrlancern@gmail.com>
Author
Parents
Loading