diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-06-08 17:52:11 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-06-08 17:52:11 +0000 |
commit | d7c7338dd7bf1a35179ec3521f7438c0fbd98e9c (patch) | |
tree | 1c1efc4190ac20c8355a8970147cbe9556377dcc /lib/Sema/SemaExpr.cpp | |
parent | d7a95971bd91b21922e5e878ba05bbe42b585cc9 (diff) |
Fixes a typo which prevented proper code gen. for
copy-in of c++ class objects into blocks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 3473ef0090..da7c6a2dae 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -1764,8 +1764,7 @@ Sema::BuildDeclarationNameExpr(const CXXScopeSpec &SS, if (!Res.isInvalid()) { Res = MaybeCreateCXXExprWithTemporaries(move(Res)); Expr *Init = Res.takeAs<Expr>(); - if (isa<CXXConstructExpr>(Init)) - BDRE->setCopyConstructorExpr(Init); + BDRE->setCopyConstructorExpr(Init); } } return Owned(BDRE); |