6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
-
10
9
#include " Flang.h"
11
10
#include " CommonArgs.h"
12
11
@@ -170,7 +169,6 @@ void Flang::addPicOptions(const ArgList &Args, ArgStringList &CmdArgs) const {
170
169
}
171
170
}
172
171
173
-
174
172
void Flang::AddAArch64TargetArgs (const ArgList &Args,
175
173
ArgStringList &CmdArgs) const {
176
174
// Handle -msve_vector_bits=<bits>
@@ -185,17 +183,17 @@ void Flang::AddAArch64TargetArgs(const ArgList &Args,
185
183
if (Val.endswith (" +" ))
186
184
Val = Val.substr (0 , Val.size () - 1 );
187
185
else {
188
- bool Invalid = Val.getAsInteger (10 , Bits); ( void )Invalid ;
186
+ [[maybe_unused]] bool Invalid = Val.getAsInteger (10 , Bits);
189
187
assert (!Invalid && " Failed to parse value" );
190
188
CmdArgs.push_back (
191
189
Args.MakeArgString (" -mvscale-max=" + llvm::Twine (Bits / 128 )));
192
190
}
193
191
194
- bool Invalid = Val.getAsInteger (10 , Bits); ( void )Invalid ;
192
+ [[maybe_unused]] bool Invalid = Val.getAsInteger (10 , Bits);
195
193
assert (!Invalid && " Failed to parse value" );
196
194
CmdArgs.push_back (
197
195
Args.MakeArgString (" -mvscale-min=" + llvm::Twine (Bits / 128 )));
198
- // Silently drop requests for vector-length agnostic code as it's implied.
196
+ // Silently drop requests for vector-length agnostic code as it's implied.
199
197
} else if (!Val.equals (" scalable" ))
200
198
// Handle the unsupported values passed to msve-vector-bits.
201
199
D.Diag (diag::err_drv_unsupported_option_argument)
0 commit comments