[PATCH] D154654: [BOLT] Fix buildbot failure

Maksim Panchenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 6 13:31:47 PDT 2023


maksfb created this revision.
maksfb added a reviewer: Amir.
Herald added a reviewer: rafauler.
Herald added subscribers: treapster, ayermolo.
Herald added a project: All.
maksfb requested review of this revision.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.

GCC requires "class" keyword when variable name matches class name.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154654

Files:
  bolt/include/bolt/Rewrite/RewriteInstance.h


Index: bolt/include/bolt/Rewrite/RewriteInstance.h
===================================================================
--- bolt/include/bolt/Rewrite/RewriteInstance.h
+++ bolt/include/bolt/Rewrite/RewriteInstance.h
@@ -386,7 +386,7 @@
 
 private:
   /// Manage a pipeline of metadata handlers.
-  MetadataManager MetadataManager;
+  class MetadataManager MetadataManager;
 
   /// Get the contents of the LSDA section for this binary.
   ArrayRef<uint8_t> getLSDAData();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154654.537863.patch
Type: text/x-patch
Size: 471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230706/0c25a77f/attachment.bin>


More information about the llvm-commits mailing list