Skip to content

Commit

Permalink
[compiler] Avoid ambiguous symbol error with MSVC
Browse files Browse the repository at this point in the history
The MSVC compiler doesn't like this use of `detail` and says it could be
either v8::internal::compiler::detail
or v8::internal::compiler::turboshaft::detail
  • Loading branch information
targos committed Jul 26, 2023
1 parent 38ededd commit dca9b9e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions deps/v8/src/compiler/backend/instruction-selector-adapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
// a temporary fallback for these functions such that compilation is possible
// while transitioning the instruction selector incrementally. Once all uses
// of Node*, BasicBlock*, ... have been replaced, remove those fallbacks.
#define DECLARE_UNREACHABLE_TURBOSHAFT_FALLBACK(ret, name) \
template <typename... Args> \
std::enable_if_t<Adapter::IsTurboshaft && \
detail::AnyTurbofanNodeOrBlock<Args...>::value, \
ret> \
name(Args...) { \
UNREACHABLE(); \
#define DECLARE_UNREACHABLE_TURBOSHAFT_FALLBACK(ret, name) \
template <typename... Args> \
std::enable_if_t<Adapter::IsTurboshaft && \
v8::internal::compiler::detail::AnyTurbofanNodeOrBlock< \
Args...>::value, \
ret> \
name(Args...) { \
UNREACHABLE(); \
}

namespace v8::internal::compiler {
Expand Down

0 comments on commit dca9b9e

Please sign in to comment.