Skip to content

Commit

Permalink
Don't use tag-based init; gcc v9 doesn't like it.
Browse files Browse the repository at this point in the history
Differential Revision: D68507323
  • Loading branch information
David Detlefs authored and facebook-github-bot committed Jan 22, 2025
1 parent a0840f8 commit 68915de
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/VM/Interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2299,8 +2299,11 @@ CallResult<HermesValue> Interpreter::interpretFunction(
// have special HC's, different from that of an empty object, and
// don't do proto caching for such objects, then we wouldn't have
// to do this check.
const SHObjectFlags kLazyProxyOrHost{
.hostObject = 1, .lazyObject = 1, .proxyObject = 1};
SHObjectFlags kLazyProxyOrHost;
kLazyProxyOrHost.bits = 0;
kLazyProxyOrHost.hostObject = 1;
kLazyProxyOrHost.lazyObject = 1;
kLazyProxyOrHost.proxyObject = 1;
if (LLVM_LIKELY(
cacheEntry->negMatchClazz == clazzPtr &&
!obj->hasFlagIn(kLazyProxyOrHost))) {
Expand Down

0 comments on commit 68915de

Please sign in to comment.