From: Benjamin Kramer Date: Sat, 7 Sep 2019 10:27:13 +0000 (+0000) Subject: [Attributor] Make unimplemented method pure virtual. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7576bfc5394367033b84f5586f70891e9e528c59;p=llvm [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 --- 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,