[PATCH] D107422: Fix gcc build error after D105519
Pengfei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 8 23:32:55 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc70fa6da9a0c: Fix gcc build error after D105519 (authored by TaoPan, committed by pengfei).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107422/new/
https://reviews.llvm.org/D107422
Files:
lld/wasm/SyntheticSections.h
Index: lld/wasm/SyntheticSections.h
===================================================================
--- lld/wasm/SyntheticSections.h
+++ lld/wasm/SyntheticSections.h
@@ -131,7 +131,8 @@
// `ImportKey<T>` can be used as a key in a `DenseMap` if `T` can be used as a
// key in a `DenseMap`.
-template <typename T> struct llvm::DenseMapInfo<lld::wasm::ImportKey<T>> {
+namespace llvm {
+template <typename T> struct DenseMapInfo<lld::wasm::ImportKey<T>> {
static lld::wasm::ImportKey<T> getEmptyKey() {
typename lld::wasm::ImportKey<T> key(llvm::DenseMapInfo<T>::getEmptyKey());
key.state = lld::wasm::ImportKey<T>::State::Empty;
@@ -154,6 +155,7 @@
return lhs == rhs;
}
};
+} // end namespace llvm
namespace lld {
namespace wasm {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107422.365090.patch
Type: text/x-patch
Size: 763 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210809/a3a92cf8/attachment.bin>
More information about the llvm-commits
mailing list