From 7576bfc5394367033b84f5586f70891e9e528c59 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 7 Sep 2019 10:27:13 +0000 Subject: [PATCH] [Attributor] Make unimplemented method pure virtual. Otherwise the compiler mistakes it for a vtable anchor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371298 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/IPO/Attributor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/llvm/Transforms/IPO/Attributor.h b/include/llvm/Transforms/IPO/Attributor.h index 4e98465aff3..84aab8f6fd0 100644 --- a/include/llvm/Transforms/IPO/Attributor.h +++ b/include/llvm/Transforms/IPO/Attributor.h @@ -1713,9 +1713,9 @@ struct AAValueSimplify : public StateWrapper, ///} /// 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 getAssumedSimplifiedValue(Attributor &A) const; + /// there cannot be one, return original value. If it is not clear yet, return + /// the Optional::NoneType. + virtual Optional getAssumedSimplifiedValue(Attributor &A) const = 0; /// Create an abstract attribute view for the position \p IRP. static AAValueSimplify &createForPosition(const IRPosition &IRP, -- 2.50.1