diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2015-02-25 17:36:15 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2015-02-25 17:36:15 +0000 |
| commit | fa966a6a6b6dd6954639a37286597e6b62fd236e (patch) | |
| tree | f1508691d93eff4545e100ba563bcd06c8ba878e /lib/CodeGen/CGExprComplex.cpp | |
| parent | fcb5402f028c080cb7e25bb7e974bbb4a793e650 (diff) | |
| download | clang-fa966a6a6b6dd6954639a37286597e6b62fd236e.tar.gz | |
Sema: Parenthesized bound destructor member expressions can be called
We would wrongfully reject (a.~A)() in both the destructor and
pseudo-destructor cases.
This fixes PR22668.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprComplex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprComplex.cpp b/lib/CodeGen/CGExprComplex.cpp index e0ac08b1aa..b2228f094c 100644 --- a/lib/CodeGen/CGExprComplex.cpp +++ b/lib/CodeGen/CGExprComplex.cpp @@ -377,7 +377,7 @@ VisitImaginaryLiteral(const ImaginaryLiteral *IL) { ComplexPairTy ComplexExprEmitter::VisitCallExpr(const CallExpr *E) { - if (E->getCallReturnType()->isReferenceType()) + if (E->getCallReturnType(CGF.getContext())->isReferenceType()) return EmitLoadOfLValue(E); return CGF.EmitCallExpr(E).getComplexVal(); |
