[lld] r221312 - Fix an [-Werror, -Winconsistent-missing-override] error.

Eric Christopher echristo at gmail.com
Tue Nov 4 15:21:07 PST 2014


Author: echristo
Date: Tue Nov  4 17:21:07 2014
New Revision: 221312

URL: http://llvm.org/viewvc/llvm-project?rev=221312&view=rev
Log:
Fix an [-Werror,-Winconsistent-missing-override] error.

Modified:
    lld/trunk/include/lld/Core/Simple.h

Modified: lld/trunk/include/lld/Core/Simple.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Simple.h?rev=221312&r1=221311&r2=221312&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/Simple.h (original)
+++ lld/trunk/include/lld/Core/Simple.h Tue Nov  4 17:21:07 2014
@@ -40,7 +40,8 @@ public:
     }
   }
 
-  void removeDefinedAtomsIf(std::function<bool(const DefinedAtom *)> pred) {
+  void
+  removeDefinedAtomsIf(std::function<bool(const DefinedAtom *)> pred) override {
     auto &atoms = _definedAtoms._atoms;
     auto newEnd = std::remove_if(atoms.begin(), atoms.end(), pred);
     atoms.erase(newEnd, atoms.end());





More information about the llvm-commits mailing list