Skip to content

Commit

Permalink
Add PROMSXP to notObj check in missing assumptions (#1292)
Browse files Browse the repository at this point in the history
Co-authored-by: Michal Štěpánek <[email protected]>
  • Loading branch information
skrynski and stepam38 authored Jun 21, 2024
1 parent f5c47de commit 189a62b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rir/src/compiler/native/builtins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,8 @@ static SEXP nativeCallTrampolineImpl(ArglistOrder::CallId callId, rir::Code* c,
case TypeAssumption::Arg##__i__##IsNotObj_: { \
auto a = loadArg(__i__); \
if (a == R_UnboundValue || a == R_MissingArg || Rf_isObject(a) || \
TYPEOF(a) == CLOSXP || TYPEOF(a) == ENVSXP) \
TYPEOF(a) == PROMSXP || TYPEOF(a) == CLOSXP || \
TYPEOF(a) == ENVSXP) \
fail = true; \
break; \
}
Expand Down

0 comments on commit 189a62b

Please sign in to comment.