Author: Steffen Larsen Date: 2026-10-21T01:46:34Z New Revision: b6f690e52fb0c0209bb46801fcc878fdbbf829a2
URL: https://github.com/llvm/llvm-project/commit/b6f690e52fb0c0209bb46801fcc878fdbbf829a2 DIFF: https://github.com/llvm/llvm-project/commit/b6f690e52fb0c0209bb46801fcc878fdbbf829a2.diff LOG: [CIR] Fix GCC ambiguity after #232835 (#233734) After #232835, some GCC versions fail to compile CIR due to an ambiguity in a call to `mlir::LLVM::InsertValueOp::create`. Fix this ambiguity by explicitly specifying the last argument. --------- Signed-off-by: Steffen Holst Larsen <[email protected]> Co-authored-by: Akimasa Watanuki <[email protected]> Added: Modified: clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp Removed: ################################################################################ diff --git a/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp b/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp index 541d4de60a337..88acf1a5ba945 100644 --- a/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp +++ b/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp @@ -958,7 +958,7 @@ mlir::Value CIRAttrToValue::visitCirAttr(cir::ConstArrayAttr attr) { if (!init) return {}; return mlir::LLVM::InsertValueOp::create(rewriter, loc, result, init, - int64_t{0}); + llvm::ArrayRef<int64_t>{0}); } for (auto [idx, elt] : llvm::enumerate(arrayAttr)) { mlir::Value init = visit(elt); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
