Skip to content

Commit 6143ed6

Browse files
committed
Clean up getSInt32
1 parent 5636bb0 commit 6143ed6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenBuilder.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy {
190190
// -------------------------
191191
//
192192
cir::ConstantOp getSInt32(int32_t c, mlir::Location loc) {
193-
auto sInt32Ty = getSInt32Ty();
194-
return create<cir::ConstantOp>(loc, cir::IntAttr::get(sInt32Ty, c));
193+
return getConstantInt(loc, getSInt32Ty(), c);
195194
}
196195

197196
// Creates constant nullptr for pointer type ty.

0 commit comments

Comments
 (0)