[llvm] r371298 - [Attributor] Make unimplemented method pure virtual.

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 7 03:27:14 PDT 2019


Author: d0k
Date: Sat Sep  7 03:27:13 2019
New Revision: 371298

URL: http://llvm.org/viewvc/llvm-project?rev=371298&view=rev
Log:
[Attributor] Make unimplemented method pure virtual.

Otherwise the compiler mistakes it for a vtable anchor.

Modified:
    llvm/trunk/include/llvm/Transforms/IPO/Attributor.h

Modified: llvm/trunk/include/llvm/Transforms/IPO/Attributor.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/IPO/Attributor.h?rev=371298&r1=371297&r2=371298&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/IPO/Attributor.h (original)
+++ llvm/trunk/include/llvm/Transforms/IPO/Attributor.h Sat Sep  7 03:27:13 2019
@@ -1713,9 +1713,9 @@ struct AAValueSimplify : public StateWra
   ///}
 
   /// Return an assumed simplified value if a single candidate is found. If
-  /// there cannot be one, return original value. If it is not clear yet, return the
-  /// Optional::NoneType.
-  virtual Optional<Value *> getAssumedSimplifiedValue(Attributor &A) const;
+  /// there cannot be one, return original value. If it is not clear yet, return
+  /// the Optional::NoneType.
+  virtual Optional<Value *> getAssumedSimplifiedValue(Attributor &A) const = 0;
 
   /// Create an abstract attribute view for the position \p IRP.
   static AAValueSimplify &createForPosition(const IRPosition &IRP,




More information about the llvm-commits mailing list