Skip to content

Commit 212f14f

Browse files
authored
[CIR] Change 'CIR-int' to use a 'APIntParameter' argument (#136713)
After 4bcc414 an APInt parameter diagnoses, so this switches us to APIntParameter. I don't believe we need to put this in the incubator, as it'll get this in the same pulldown as the diagnostic.
1 parent 0252d33 commit 212f14f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/CIR/Dialect/IR/CIRAttrs.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def IntAttr : CIR_Attr<"Int", "int", [TypedAttrInterface]> {
114114
value of the specified integer type.
115115
}];
116116
let parameters = (ins AttributeSelfTypeParameter<"">:$type,
117-
"llvm::APInt":$value);
117+
APIntParameter<"">:$value);
118118
let builders = [
119119
AttrBuilderWithInferredContext<(ins "mlir::Type":$type,
120120
"const llvm::APInt &":$value), [{

0 commit comments

Comments
 (0)