diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index 60859fdcd59cf..49e819e2d10f7 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/lib/CodeGen/VirtRegMap.cpp @@ -222,7 +222,6 @@ class VirtRegRewriter { MCRegister PhysReg, const MachineInstr &MI) const; public: - static char ID; VirtRegRewriter(bool ClearVirtRegs, SlotIndexes *Indexes, LiveIntervals *LIS, LiveRegMatrix *LRM, VirtRegMap *VRM, LiveDebugVariables *DebugVars) diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp index 3917b97b67101..7740f622ede7c 100644 --- a/llvm/lib/Passes/PassBuilder.cpp +++ b/llvm/lib/Passes/PassBuilder.cpp @@ -1505,7 +1505,7 @@ Expected parseMachineBlockPlacementPassOptions(StringRef Params) { inconvertibleErrorCode()); } return AllowTailMerge; -}; +} Expected parseVirtRegRewriterPassOptions(StringRef Params) { bool ClearVirtRegs = true;