[clang] [CIR] Support LNot for Vector of bool (PR #217885)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 22 05:20:32 PDT 2026
================
@@ -1052,9 +1052,8 @@ mlir::Value CIRAttrToValue::visitCirAttr(cir::VTableAttr vtableArr) {
/// ZeroAttr visitor.
mlir::Value CIRAttrToValue::visitCirAttr(cir::ZeroAttr attr) {
mlir::Location loc = parentOp->getLoc();
- mlir::DataLayout layout(parentOp->getParentOfType<mlir::ModuleOp>());
- return mlir::LLVM::ZeroOp::create(
- rewriter, loc, convertTypeForMemory(*converter, layout, attr.getType()));
+ mlir::Type llvmTy = converter->convertType(attr.getType());
----------------
AmrDeveloper wrote:
Oops, I forgot that we don't have a test for that case, I will change the solution and add test for global var
https://github.com/llvm/llvm-project/pull/217885
More information about the cfe-commits
mailing list