summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-11-05 15:29:30 +0000
committerDouglas Gregor <dgregor@apple.com>2008-11-05 15:29:30 +0000
commit6f5431543a701c54293a977c28844e9862f8f491 (patch)
treef3b6e7832720b29d309135362b053bea120af5d5 /clang/lib/Sema/SemaExpr.cpp
parentbfd58d87f31f4c24604965d919b8bbdaa6ac9ff6 (diff)
downloadbcm5719-llvm-6f5431543a701c54293a977c28844e9862f8f491.tar.gz
bcm5719-llvm-6f5431543a701c54293a977c28844e9862f8f491.zip
Implement C++ copy-initialization for declarations. There is now some
duplication in the handling of copy-initialization by constructor, which occurs both for initialization of a declaration and for overloading. The initialization code is due for some refactoring. llvm-svn: 58756
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index c0abc9e51ae..80ecf3312a9 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -1231,7 +1231,8 @@ ActOnCompoundLiteral(SourceLocation LParenLoc, TypeTy *Ty,
literalExpr->getSourceRange().getEnd()));
}
- if (CheckInitializerTypes(literalExpr, literalType))
+ if (CheckInitializerTypes(literalExpr, literalType, LParenLoc,
+ "temporary"))
return true;
bool isFileScope = !getCurFunctionDecl() && !getCurMethodDecl();
OpenPOWER on IntegriCloud