Commit 2a055e8
deps: V8: cherry-pick 913f679d5a4a
Original commit message:
Fix non-conforming braced-init-list in value_or()
value_or() is a function template that deduces its argument type.
Passing a braced-init-list {} causes deduction to fail in GCC
because {} has no type:
wasm-shuffle-reducer.cc:576: error: no matching member function
for call to 'value_or'
note: candidate template ignored: couldn't infer template argument
Clang only accepted it by chance. Replace {} with uint8_t{0} to make
the type explicit.
Refs: https://eel.is/c++draft/temp.deduct.call
Refs: nodejs#62572
Change-Id: I589617c78fbc1a65a3475957f846ffb87364ff28
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7726131
Reviewed-by: Matthias Liedtke <[email protected]>
Commit-Queue: Joyee Cheung <[email protected]>
Cr-Commit-Position: refs/heads/main@{#106357}
Refs: v8/v8@913f6791 parent 175bcc8 commit 2a055e8
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
| 576 | + | |
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| |||
0 commit comments