[flang-commits] [flang] 710874f - [flang][openacc][NFC] Fix type in assert message
Valentin Clement via flang-commits
flang-commits at lists.llvm.org
Mon Jul 10 10:53:38 PDT 2023
Author: Valentin Clement
Date: 2023-07-10T10:53:18-07:00
New Revision: 710874f68c9ec67fb90d226b6e77cdd183ce2ec3
URL: https://github.com/llvm/llvm-project/commit/710874f68c9ec67fb90d226b6e77cdd183ce2ec3
DIFF: https://github.com/llvm/llvm-project/commit/710874f68c9ec67fb90d226b6e77cdd183ce2ec3.diff
LOG: [flang][openacc][NFC] Fix type in assert message
Added:
Modified:
flang/lib/Lower/OpenACC.cpp
Removed:
################################################################################
diff --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp
index 7354aa28d4ad2b..d8bde8b177b01f 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -43,7 +43,8 @@ genBoundsOpsFromBox(fir::FirOpBuilder &builder, mlir::Location loc,
mlir::Type idxTy = builder.getIndexType();
mlir::Type boundTy = builder.getType<mlir::acc::DataBoundsType>();
mlir::Value one = builder.createIntegerConstant(loc, idxTy, 1);
- assert(box.getType().isa<fir::BaseBoxType>() && "expect firbox or fir.class");
+ assert(box.getType().isa<fir::BaseBoxType>() &&
+ "expect fir.box or fir.class");
for (unsigned dim = 0; dim < dataExv.rank(); ++dim) {
mlir::Value d = builder.createIntegerConstant(loc, idxTy, dim);
mlir::Value baseLb =
More information about the flang-commits
mailing list