We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5636bb0 commit 6143ed6Copy full SHA for 6143ed6
clang/lib/CIR/CodeGen/CIRGenBuilder.h
@@ -190,8 +190,7 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy {
190
// -------------------------
191
//
192
cir::ConstantOp getSInt32(int32_t c, mlir::Location loc) {
193
- auto sInt32Ty = getSInt32Ty();
194
- return create<cir::ConstantOp>(loc, cir::IntAttr::get(sInt32Ty, c));
+ return getConstantInt(loc, getSInt32Ty(), c);
195
}
196
197
// Creates constant nullptr for pointer type ty.
0 commit comments