Index: llvm/trunk/include/llvm/Analysis/LazyCallGraph.h =================================================================== --- llvm/trunk/include/llvm/Analysis/LazyCallGraph.h +++ llvm/trunk/include/llvm/Analysis/LazyCallGraph.h @@ -190,7 +190,7 @@ Function &getFunction() const { return F; - }; + } iterator begin() const { return iterator(*G, Callees.begin(), Callees.end()); Index: llvm/trunk/include/llvm/Analysis/TargetLibraryInfo.h =================================================================== --- llvm/trunk/include/llvm/Analysis/TargetLibraryInfo.h +++ llvm/trunk/include/llvm/Analysis/TargetLibraryInfo.h @@ -201,13 +201,13 @@ } bool isFunctionVectorizable(StringRef F, unsigned VF) const { return Impl->isFunctionVectorizable(F, VF); - }; + } bool isFunctionVectorizable(StringRef F) const { return Impl->isFunctionVectorizable(F); - }; + } StringRef getVectorizedFunction(StringRef F, unsigned VF) const { return Impl->getVectorizedFunction(F, VF); - }; + } /// \brief Tests if the function is both available and a candidate for /// optimized code generation. Index: llvm/trunk/include/llvm/Bitcode/ReaderWriter.h =================================================================== --- llvm/trunk/include/llvm/Bitcode/ReaderWriter.h +++ llvm/trunk/include/llvm/Bitcode/ReaderWriter.h @@ -159,7 +159,7 @@ BitcodeDiagnosticInfo(std::error_code EC, DiagnosticSeverity Severity, const Twine &Msg); void print(DiagnosticPrinter &DP) const override; - std::error_code getError() const { return EC; }; + std::error_code getError() const { return EC; } static bool classof(const DiagnosticInfo *DI) { return DI->getKind() == DK_Bitcode; Index: llvm/trunk/include/llvm/CodeGen/MachineScheduler.h =================================================================== --- llvm/trunk/include/llvm/CodeGen/MachineScheduler.h +++ llvm/trunk/include/llvm/CodeGen/MachineScheduler.h @@ -915,7 +915,7 @@ MachineBasicBlock::iterator End, unsigned NumRegionInstrs) override { /* no configurable policy */ - }; + } /// PostRA scheduling does not track pressure. bool shouldTrackPressure() const override { return false; } Index: llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h =================================================================== --- llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h +++ llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h @@ -374,7 +374,7 @@ /// correspond to schedulable entities (e.g. instructions) and do not have a /// valid ID. Consequently, always check for boundary nodes before accessing /// an assoicative data structure keyed on node ID. - bool isBoundaryNode() const { return NodeNum == BoundaryID; }; + bool isBoundaryNode() const { return NodeNum == BoundaryID; } /// setNode - Assign the representative SDNode for this SUnit. /// This may be used during pre-regalloc scheduling. Index: llvm/trunk/include/llvm/ExecutionEngine/ExecutionEngine.h =================================================================== --- llvm/trunk/include/llvm/ExecutionEngine/ExecutionEngine.h +++ llvm/trunk/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -481,7 +481,7 @@ } protected: - ExecutionEngine(const DataLayout DL) : DL(std::move(DL)){}; + ExecutionEngine(const DataLayout DL) : DL(std::move(DL)){} explicit ExecutionEngine(DataLayout DL, std::unique_ptr M); explicit ExecutionEngine(std::unique_ptr M); Index: llvm/trunk/include/llvm/ExecutionEngine/RuntimeDyld.h =================================================================== --- llvm/trunk/include/llvm/ExecutionEngine/RuntimeDyld.h +++ llvm/trunk/include/llvm/ExecutionEngine/RuntimeDyld.h @@ -87,7 +87,7 @@ /// \brief Memory Management. class MemoryManager { public: - virtual ~MemoryManager() {}; + virtual ~MemoryManager() {} /// Allocate a memory block of (at least) the given size suitable for /// executable code. The SectionID is a unique identifier assigned by the @@ -149,7 +149,7 @@ /// \brief Symbol resolution. class SymbolResolver { public: - virtual ~SymbolResolver() {}; + virtual ~SymbolResolver() {} /// This method returns the address of the specified function or variable. /// It is used to resolve symbols during module linking. Index: llvm/trunk/include/llvm/IR/DebugInfoMetadata.h =================================================================== --- llvm/trunk/include/llvm/IR/DebugInfoMetadata.h +++ llvm/trunk/include/llvm/IR/DebugInfoMetadata.h @@ -67,8 +67,8 @@ operator Metadata *() const { return const_cast(MD); } - bool operator==(const TypedDINodeRef &X) const { return MD == X.MD; }; - bool operator!=(const TypedDINodeRef &X) const { return MD != X.MD; }; + bool operator==(const TypedDINodeRef &X) const { return MD == X.MD; } + bool operator!=(const TypedDINodeRef &X) const { return MD != X.MD; } /// \brief Create a reference. /// Index: llvm/trunk/include/llvm/IR/DiagnosticPrinter.h =================================================================== --- llvm/trunk/include/llvm/IR/DiagnosticPrinter.h +++ llvm/trunk/include/llvm/IR/DiagnosticPrinter.h @@ -63,7 +63,7 @@ raw_ostream &Stream; public: - DiagnosticPrinterRawOStream(raw_ostream &Stream) : Stream(Stream) {}; + DiagnosticPrinterRawOStream(raw_ostream &Stream) : Stream(Stream) {} // Simple types. DiagnosticPrinter &operator<<(char C) override; Index: llvm/trunk/include/llvm/MC/MCLinkerOptimizationHint.h =================================================================== --- llvm/trunk/include/llvm/MC/MCLinkerOptimizationHint.h +++ llvm/trunk/include/llvm/MC/MCLinkerOptimizationHint.h @@ -160,7 +160,7 @@ public: typedef SmallVectorImpl LOHDirectives; - MCLOHContainer() : EmitSize(0) {}; + MCLOHContainer() : EmitSize(0) {} /// Const accessor to the directives. const LOHDirectives &getDirectives() const { Index: llvm/trunk/include/llvm/MC/MCTargetAsmParser.h =================================================================== --- llvm/trunk/include/llvm/MC/MCTargetAsmParser.h +++ llvm/trunk/include/llvm/MC/MCTargetAsmParser.h @@ -198,7 +198,7 @@ return nullptr; } - virtual void onLabelParsed(MCSymbol *Symbol) { }; + virtual void onLabelParsed(MCSymbol *Symbol) { } }; } // End llvm namespace Index: llvm/trunk/lib/Analysis/ScalarEvolution.cpp =================================================================== --- llvm/trunk/lib/Analysis/ScalarEvolution.cpp +++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp @@ -6731,7 +6731,7 @@ ScalarEvolution &SE; explicit ClearWalkingBEDominatingCondsOnExit(ScalarEvolution &SE) - : SE(SE){}; + : SE(SE){} ~ClearWalkingBEDominatingCondsOnExit() { SE.WalkingBEDominatingConds = false; Index: llvm/trunk/lib/ExecutionEngine/Orc/OrcMCJITReplacement.h =================================================================== --- llvm/trunk/lib/ExecutionEngine/Orc/OrcMCJITReplacement.h +++ llvm/trunk/lib/ExecutionEngine/Orc/OrcMCJITReplacement.h @@ -290,7 +290,7 @@ "Incorrect number of Infos for Objects."); for (unsigned I = 0; I < Objects.size(); ++I) M.MemMgr.notifyObjectLoaded(&M, *Objects[I]); - }; + } private: OrcMCJITReplacement &M; Index: llvm/trunk/lib/IR/DiagnosticInfo.cpp =================================================================== --- llvm/trunk/lib/IR/DiagnosticInfo.cpp +++ llvm/trunk/lib/IR/DiagnosticInfo.cpp @@ -49,7 +49,7 @@ "' in -pass-remarks: " + RegexError, false); } - }; + } }; static PassRemarksOpt PassRemarksOptLoc; Index: llvm/trunk/lib/Target/X86/X86CallFrameOptimization.cpp =================================================================== --- llvm/trunk/lib/Target/X86/X86CallFrameOptimization.cpp +++ llvm/trunk/lib/Target/X86/X86CallFrameOptimization.cpp @@ -54,7 +54,7 @@ struct CallContext { CallContext() : Call(nullptr), SPCopy(nullptr), ExpectedDist(0), - MovVector(4, nullptr), NoStackParams(false), UsePush(false){}; + MovVector(4, nullptr), NoStackParams(false), UsePush(false){} // Actuall call instruction MachineInstr *Call; Index: llvm/trunk/lib/Target/X86/X86MachineFunctionInfo.h =================================================================== --- llvm/trunk/lib/Target/X86/X86MachineFunctionInfo.h +++ llvm/trunk/lib/Target/X86/X86MachineFunctionInfo.h @@ -100,7 +100,7 @@ public: X86MachineFunctionInfo() = default; - explicit X86MachineFunctionInfo(MachineFunction &MF) {}; + explicit X86MachineFunctionInfo(MachineFunction &MF) {} bool getForceFramePointer() const { return ForceFramePointer;} void setForceFramePointer(bool forceFP) { ForceFramePointer = forceFP; } Index: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp =================================================================== --- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -506,7 +506,7 @@ /// This POD struct describes one external user in the vectorized tree. struct ExternalUser { ExternalUser (Value *S, llvm::User *U, int L) : - Scalar(S), User(U), Lane(L){}; + Scalar(S), User(U), Lane(L){} // Which scalar in our function. Value *Scalar; // Which user that uses the scalar.