diff options
author | Andy Gibbs <andyg1001@hotmail.co.uk> | 2015-12-02 14:22:18 +0000 |
---|---|---|
committer | Andy Gibbs <andyg1001@hotmail.co.uk> | 2015-12-02 14:22:18 +0000 |
commit | 57a23151ca75258c648b3eb238ae9c6231aa933c (patch) | |
tree | cec0607af26fb234c0d202943c3ac6c624a92de0 | |
parent | c8f472c3a69b223ad52f7de41b517edd98c6a511 (diff) | |
download | bcm5719-llvm-57a23151ca75258c648b3eb238ae9c6231aa933c.tar.gz bcm5719-llvm-57a23151ca75258c648b3eb238ae9c6231aa933c.zip |
Fix buildbots broken by r254508
g++ 4.7 does not allow an inline defaulted virtual destructor to be overridden,
giving the error "looser throw specifier for ... overridding ~SCEVPredicate()
noexcept (true)" (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53613).
The work-around given in the bug report above has been utilised here.
llvm-svn: 254511
-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); |