Use 'override/final' instead of 'virtual' for overridden methods
[oota-llvm.git] / include / llvm / Analysis / LazyValueInfo.h
index 8e5bbfbdadb502b7bedd25e6c5009aef1ccd81ca..1051cff5efb701dedfa871abfdc30bae3ef5d253 100644 (file)
@@ -39,7 +39,7 @@ public:
   LazyValueInfo() : FunctionPass(ID), PImpl(nullptr) {
     initializeLazyValueInfoPass(*PassRegistry::getPassRegistry());
   }
-  ~LazyValueInfo() { assert(!PImpl && "releaseMemory not called"); }
+  ~LazyValueInfo() override { assert(!PImpl && "releaseMemory not called"); }
 
   /// This is used to return true/false/dunno results.
   enum Tristate {