[PATCH] D146419: [x86][MemFold] Fix anon namespace in header

Felipe de Azevedo Piovezan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 05:53:55 PDT 2023


fdeazeve created this revision.
fdeazeve added a reviewer: yubing.
Herald added a project: All.
fdeazeve requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

D142084 <https://reviews.llvm.org/D142084> moved an enumeration inside a header from the llvm namespace
into an anon namespace. Some of the bots started failing as a result.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146419

Files:
  llvm/include/llvm/Support/X86FoldTablesUtils.h


Index: llvm/include/llvm/Support/X86FoldTablesUtils.h
===================================================================
--- llvm/include/llvm/Support/X86FoldTablesUtils.h
+++ llvm/include/llvm/Support/X86FoldTablesUtils.h
@@ -9,7 +9,7 @@
 #ifndef LLVM_SUPPORT_X86FOLDTABLESUTILS_H
 #define LLVM_SUPPORT_X86FOLDTABLESUTILS_H
 
-namespace {
+namespace llvm {
 enum {
   // Select which memory operand is being unfolded.
   // (stored in bits 0 - 2)
@@ -55,5 +55,5 @@
 
   // Unused bits 14-15
 };
-}
-#endif // LLVM_SUPPORT_X86FOLDTABLESUTILS_H
\ No newline at end of file
+} // namespace llvm
+#endif // LLVM_SUPPORT_X86FOLDTABLESUTILS_H


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146419.506557.patch
Type: text/x-patch
Size: 639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230320/27ca439e/attachment.bin>


More information about the llvm-commits mailing list