@@ -10237,6 +10237,11 @@ static void printFunctionArgExts(const Function *F, raw_fd_ostream &OS) {
10237
10237
void SystemZTargetLowering::
10238
10238
verifyNarrowIntegerArgs_Call (const SmallVectorImpl<ISD::OutputArg> &Outs,
10239
10239
const Function *F, SDValue Callee) const {
10240
+ // Temporarily only do the check when explicitly requested, until it can be
10241
+ // enabled by default.
10242
+ if (!EnableIntArgExtCheck)
10243
+ return ;
10244
+
10240
10245
bool IsInternal = false ;
10241
10246
const Function *CalleeFn = nullptr ;
10242
10247
if (auto *G = dyn_cast<GlobalAddressSDNode>(Callee))
@@ -10258,6 +10263,11 @@ verifyNarrowIntegerArgs_Call(const SmallVectorImpl<ISD::OutputArg> &Outs,
10258
10263
void SystemZTargetLowering::
10259
10264
verifyNarrowIntegerArgs_Ret (const SmallVectorImpl<ISD::OutputArg> &Outs,
10260
10265
const Function *F) const {
10266
+ // Temporarily only do the check when explicitly requested, until it can be
10267
+ // enabled by default.
10268
+ if (!EnableIntArgExtCheck)
10269
+ return ;
10270
+
10261
10271
if (!verifyNarrowIntegerArgs (Outs, isFullyInternal (F))) {
10262
10272
errs () << " ERROR: Missing extension attribute of returned "
10263
10273
<< " value from function:\n " ;
@@ -10274,11 +10284,6 @@ verifyNarrowIntegerArgs(const SmallVectorImpl<ISD::OutputArg> &Outs,
10274
10284
if (IsInternal || !Subtarget.isTargetELF ())
10275
10285
return true ;
10276
10286
10277
- // Temporarily only do the check when explicitly requested, until it can be
10278
- // enabled by default.
10279
- if (!EnableIntArgExtCheck)
10280
- return true ;
10281
-
10282
10287
if (EnableIntArgExtCheck.getNumOccurrences ()) {
10283
10288
if (!EnableIntArgExtCheck)
10284
10289
return true ;
0 commit comments