summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-08 06:14:04 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-08 06:14:04 +0000
commit747eb7840abcb638d6bc9590b3345608286f58f0 (patch)
tree2adb6e9fe3c8847033d030094cda8b91f5bbad77 /clang/lib/CodeGen/CGExprScalar.cpp
parentbe1f7a931efed26bfa761c33202828ccef2a2adb (diff)
downloadbcm5719-llvm-747eb7840abcb638d6bc9590b3345608286f58f0.tar.gz
bcm5719-llvm-747eb7840abcb638d6bc9590b3345608286f58f0.zip
Reinstate the fix for PR7556. A silly use of isTrivial() was
suppressing copies of objects with trivial copy constructors. llvm-svn: 107857
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index 8c120faaec8..1ebc2c571a0 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/lib/CodeGen/CGExprScalar.cpp
@@ -126,7 +126,7 @@ public:
Value *VisitCXXBoolLiteralExpr(const CXXBoolLiteralExpr *E) {
return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue());
}
- Value *VisitCXXZeroInitValueExpr(const CXXZeroInitValueExpr *E) {
+ Value *VisitCXXScalarValueInitExpr(const CXXScalarValueInitExpr *E) {
return EmitNullValue(E->getType());
}
Value *VisitGNUNullExpr(const GNUNullExpr *E) {
OpenPOWER on IntegriCloud