summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-06-08 17:52:11 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-06-08 17:52:11 +0000
commit8e73928f52af2e041388b817e58ef85b82cc7cbf (patch)
treecd436dcad4070690d428d34b64adbcb2c6e3a3a7 /clang/lib/Sema
parent4038cf4b57da3574a32008aae6357eacdcc3f89e (diff)
downloadbcm5719-llvm-8e73928f52af2e041388b817e58ef85b82cc7cbf.tar.gz
bcm5719-llvm-8e73928f52af2e041388b817e58ef85b82cc7cbf.zip
Fixes a typo which prevented proper code gen. for
copy-in of c++ class objects into blocks. llvm-svn: 105622
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 3473ef00902..da7c6a2daec 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud