• Clemens Hammacher's avatar
    [wasm] Fix alloc/dealloc size mismatch · 22b8fe3b
    Clemens Hammacher authored
    On newer compilers the {operator delete} with explicit {size_t}
    argument would be instantiated for {CompilationState} and used in the
    destructor of {std::unique_ptr<CompilationState>}. The {size_t}
    argument is wrong though, since the pointer actually points to a
    {CompilationStateImpl} object.
    Hence avoid this operator from being created by explicitly providing an
    {operator delete}.
    
    R=ulan@chromium.org
    
    Change-Id: I54fef07179b3106f3154ddd43df040fe8e3cdde8
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1631426Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#61859}
    22b8fe3b
compilation-environment.h 4.75 KB