[llvm] 2ad0668 - [X86] Remove redundant declarations (NFC) (#166107)

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 2 22:42:59 PST 2025


Author: Kazu Hirata
Date: 2025-11-02T22:42:54-08:00
New Revision: 2ad0668a08feaa61d7cd999ac5bef4ee33101eea

URL: https://github.com/llvm/llvm-project/commit/2ad0668a08feaa61d7cd999ac5bef4ee33101eea
DIFF: https://github.com/llvm/llvm-project/commit/2ad0668a08feaa61d7cd999ac5bef4ee33101eea.diff

LOG: [X86] Remove redundant declarations (NFC) (#166107)

In C++17, static constexpr members are implicitly inline, so they no
longer require an out-of-line definition.

Identified with readability-redundant-declaration.

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp b/llvm/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp
index b655183b6b49b..3b96e706fb607 100644
--- a/llvm/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp
+++ b/llvm/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp
@@ -227,9 +227,6 @@ struct DOTGraphTraits<MachineGadgetGraph *> : DefaultDOTGraphTraits {
 
 } // end namespace llvm
 
-constexpr MachineInstr *MachineGadgetGraph::ArgNodeSentinel;
-constexpr int MachineGadgetGraph::GadgetEdgeSentinel;
-
 char X86LoadValueInjectionLoadHardeningPass::ID = 0;
 
 void X86LoadValueInjectionLoadHardeningPass::getAnalysisUsage(


        


More information about the llvm-commits mailing list