Skip to content

Commit 94124e2

Browse files
PanTao2nikic
authored andcommitted
Fix gcc build error after D105519
Same as 3bec7ed Reviewed By: sbc100 Differential Revision: https://reviews.llvm.org/D107422 (cherry picked from commit c70fa6d)
1 parent 129a736 commit 94124e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lld/wasm/SyntheticSections.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ inline bool operator==(const ImportKey<T> &lhs, const ImportKey<T> &rhs) {
131131

132132
// `ImportKey<T>` can be used as a key in a `DenseMap` if `T` can be used as a
133133
// key in a `DenseMap`.
134-
template <typename T> struct llvm::DenseMapInfo<lld::wasm::ImportKey<T>> {
134+
namespace llvm {
135+
template <typename T> struct DenseMapInfo<lld::wasm::ImportKey<T>> {
135136
static lld::wasm::ImportKey<T> getEmptyKey() {
136137
typename lld::wasm::ImportKey<T> key(llvm::DenseMapInfo<T>::getEmptyKey());
137138
key.state = lld::wasm::ImportKey<T>::State::Empty;
@@ -154,6 +155,7 @@ template <typename T> struct llvm::DenseMapInfo<lld::wasm::ImportKey<T>> {
154155
return lhs == rhs;
155156
}
156157
};
158+
} // end namespace llvm
157159

158160
namespace lld {
159161
namespace wasm {

0 commit comments

Comments
 (0)