Skip to content

Commit

Permalink
integrate fixups (#1941)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Jun 24, 2024
1 parent 648993a commit c2effa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion enzyme/Enzyme/MLIR/Analysis/DataFlowAliasAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ void populateConservativeCallEffects(
for (auto it = rng.begin(); it != rng.end(); it++) {
auto argument = *it;
auto argOp = it.getBase();
assert(argOp.get() == argument);
assert(argOp->get() == argument);
if (!isPointerLike(argument.getType()))
continue;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class TensorTypeInterface
if (auto G = dyn_cast<ComplexType>(ET)) {
if (auto F = dyn_cast<FloatType>(G.getElementType())) {
APFloat apvalue(F.getFloatSemantics(), 0);
std::complex c(apvalue, apvalue);
std::complex<APFloat> c(apvalue, apvalue);
auto attr = DenseElementsAttr::get(tenType, c);
return builder.create<arith::ConstantOp>(loc, tenType, attr);
}
Expand Down

0 comments on commit c2effa5

Please sign in to comment.