================
@@ -1398,8 +1398,12 @@ static bool
interp__builtin_infer_alloc_token(InterpState &S, CodePtr OpPC,
MaxTokensOpt.value_or(0) ? *MaxTokensOpt : (~0ULL >> (64 - BitWidth));
// We do not read any of the arguments; discard them.
- for (int I = Call->getNumArgs() - 1; I >= 0; --I)
- discard(S.Stk, *S.getContext().classify(Call->getArg(I)));
+ for (int I = Call->getNumArgs() - 1; I >= 0; --I) {
+ if (OptPrimType T = S.getContext().classify(Call->getArg(I)))
+ discard(S.Stk, *T);
----------------
mugiwaraluffy56 wrote:
@tbaederr applied, thanks for the simplification!
https://github.com/llvm/llvm-project/pull/178936
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits