diff options
-rw-r--r-- | llvm/include/llvm/Analysis/ScalarEvolution.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/include/llvm/Analysis/ScalarEvolution.h b/llvm/include/llvm/Analysis/ScalarEvolution.h index 0000b42391a..3c7f1e052a9 100644 --- a/llvm/include/llvm/Analysis/ScalarEvolution.h +++ b/llvm/include/llvm/Analysis/ScalarEvolution.h @@ -183,7 +183,7 @@ namespace llvm { protected: SCEVPredicateKind Kind; - virtual ~SCEVPredicate() = default; + virtual ~SCEVPredicate(); SCEVPredicate(const SCEVPredicate&) = default; SCEVPredicate &operator=(const SCEVPredicate&) = default; @@ -211,6 +211,9 @@ namespace llvm { /// if this is a SCEVUnionPredicate. virtual const SCEV *getExpr() const = 0; }; + + /// Default destructor must be defined outside class due to g++ PR53613. + SCEVPredicate::~SCEVPredicate() = default; inline raw_ostream &operator<<(raw_ostream &OS, const SCEVPredicate &P) { P.print(OS); |