Skip to content

Commit e933937

Browse files
authored
Update to newer llvm (#2379)
1 parent 1a80691 commit e933937

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

enzyme/Enzyme/MLIR/Implementations/BuiltinAutoDiffTypeInterfaceImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class FloatTypeInterface : public AutoDiffTypeInterface::ExternalModel<
4848
Value createNullValue(Type self, OpBuilder &builder, Location loc) const {
4949
auto fltType = cast<ConcreteType>(self);
5050
return builder.create<arith::ConstantFloatOp>(
51-
loc, APFloat(fltType.getFloatSemantics(), 0), fltType);
51+
loc, fltType, APFloat(fltType.getFloatSemantics(), 0));
5252
}
5353

5454
Value createAddOp(Type self, OpBuilder &builder, Location loc, Value a,
@@ -156,7 +156,7 @@ class IntegerTypeInterface
156156
if (isa<IndexType>(self)) {
157157
return builder.create<arith::ConstantIndexOp>(loc, 0);
158158
}
159-
return builder.create<arith::ConstantIntOp>(loc, 0, self);
159+
return builder.create<arith::ConstantIntOp>(loc, self, 0);
160160
}
161161

162162
Value createAddOp(Type self, OpBuilder &builder, Location loc, Value a,

0 commit comments

Comments
 (0)