Skip to content

Commit

Permalink
[Flang] Mark as maybe_unused to fix warning in PPCIntrinsicCall.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranchandramohan committed Jul 3, 2023
1 parent e561eda commit 06c3607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flang/lib/Optimizer/Builder/PPCIntrinsicCall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ PPCIntrinsicLibrary::genVecAnyCompare(mlir::Type resultType,
assert(vop == VecOp::Anyge && "unknown vector compare operation");
auto argBases{getBasesForArgs(args)};
VecTypeInfo vTypeInfo{getVecTypeFromFir(argBases[0])};
const auto isSupportedTy{
[[maybe_unused]] const auto isSupportedTy{
mlir::isa<mlir::Float32Type, mlir::Float64Type, mlir::IntegerType>(
vTypeInfo.eleTy)};
assert(isSupportedTy && "unsupported vector type");
Expand Down

0 comments on commit 06c3607

Please sign in to comment.