Skip to content

Commit

Permalink
nope, that doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakobeha committed Oct 24, 2023
1 parent 0184213 commit 2ccc60e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rir/src/serializeHash/serialize/serialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ SerialOptions SerialOptions::CompilerClient(bool intern, Function* function,
SEXP decompiledClosure) {
// TODO: Fix closure env stubs and then set
// closureEnvAndIfSetWeTryToSerializeLocalEnvsAsStubs.
// Currently we set it iff the environment isn't a namespace
auto env = CLOENV(decompiledClosure);
return SerialOptions{intern, intern, false, globalsSet.count(env) || R_IsPackageEnv(env) || R_IsNamespaceEnv(env) ? nullptr : env, SerialOptions::SourcePools(function, decompiledClosure)};
return SerialOptions{intern, intern, false, nullptr, SerialOptions::SourcePools(function, decompiledClosure)};
}

SerialOptions SerialOptions::CompilerClientRetrieve{false, true, false, nullptr, SerialOptions::SourcePools()};
Expand Down

0 comments on commit 2ccc60e

Please sign in to comment.