Skip to content

Commit a84fd74

Browse files
committed
Fixed assertion message.
1 parent 15ede6a commit a84fd74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang/lib/Optimizer/HLFIR/Transforms/SimplifyHLFIRIntrinsics.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ class CShiftAsElementalConversion
350350
mlir::Location loc = cshift.getLoc();
351351
fir::FirOpBuilder builder{rewriter, cshift.getOperation()};
352352
hlfir::ExprType expr = mlir::dyn_cast<hlfir::ExprType>(cshift.getType());
353-
assert(expr && "expected an expression type for the result of hlfir.sum");
353+
assert(expr &&
354+
"expected an expression type for the result of hlfir.cshift");
354355
mlir::Type elementType = expr.getElementType();
355356
hlfir::Entity array = hlfir::Entity{cshift.getArray()};
356357
mlir::Value arrayShape = hlfir::genShape(loc, builder, array);

0 commit comments

Comments
 (0)