[PATCH] D107422: Fix gcc build error after D105519

TaoPan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 3 20:30:18 PDT 2021


TaoPan created this revision.
TaoPan added a reviewer: jpienaar.
Herald added a subscriber: sbc100.
TaoPan requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

Same as 3bec7ed59e1b <https://reviews.llvm.org/rG3bec7ed59e1b16eb07f5adac7e12dc6cb7fe0be2>


Repository:
  rG LLVM Github Monorepo

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.363958.patch
Type: text/x-patch
Size: 763 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210804/f03e92ae/attachment.bin>


More information about the llvm-commits mailing list