Skip to content

Commit 7bf74db

Browse files
xlaukolanza
authored andcommitted
[CIR] Mark addInt as NYI due to incorrect implementation (llvm#1648)
The current implementation incorrectly uses `mlir::IntegerAttr::get` with the unsupported type `cir::IntType`, which is not compatible and was never tested. As discussed in PR llvm#1645, this is to be marked as NYI until a proper implementation is provided.
1 parent 95bef37 commit 7bf74db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CIR/CodeGen/ConstantInitBuilder.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ class ConstantAggregateBuilderBase {
187187

188188
/// Add an integer value of a specific type.
189189
void addInt(cir::IntType intTy, uint64_t value, bool isSigned = false) {
190-
add(mlir::IntegerAttr::get(intTy,
191-
llvm::APInt{intTy.getWidth(), value, isSigned}));
190+
llvm_unreachable("NYI");
192191
}
193192

194193
/// Add a pointer of a specific type.

0 commit comments

Comments
 (0)