mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 17:47:58 +00:00
Fix class SCEVPredicate has virtual functions and accessible non-virtual destructor.
It is not enough to simply make the destructor virtual since there is a g++ 4.7 issue (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53613) that throws the error "looser throw specifier for ... overridding ~SCEVPredicate() noexcept". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254592 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
15766ec566
commit
e95d304fd3
@ -183,7 +183,7 @@ namespace llvm {
|
||||
|
||||
protected:
|
||||
SCEVPredicateKind Kind;
|
||||
~SCEVPredicate() = default;
|
||||
virtual ~SCEVPredicate();
|
||||
SCEVPredicate(const SCEVPredicate&) = default;
|
||||
SCEVPredicate &operator=(const SCEVPredicate&) = default;
|
||||
|
||||
|
@ -9643,6 +9643,8 @@ SCEVPredicate::SCEVPredicate(const FoldingSetNodeIDRef ID,
|
||||
SCEVPredicateKind Kind)
|
||||
: FastID(ID), Kind(Kind) {}
|
||||
|
||||
SCEVPredicate::~SCEVPredicate() {}
|
||||
|
||||
SCEVEqualPredicate::SCEVEqualPredicate(const FoldingSetNodeIDRef ID,
|
||||
const SCEVUnknown *LHS,
|
||||
const SCEVConstant *RHS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user