[cfe-commits] r92493 - in /cfe/trunk: lib/CodeGen/CGExprAgg.cpp test/Coverage/c-language-features.inc
Daniel Dunbar
daniel at zuster.org
Mon Jan 4 10:47:06 PST 2010
Author: ddunbar
Date: Mon Jan 4 12:47:06 2010
New Revision: 92493
URL: http://llvm.org/viewvc/llvm-project?rev=92493&view=rev
Log:
Revert r92431, this code isn't dead and broke the ntfs build.
Modified:
cfe/trunk/lib/CodeGen/CGExprAgg.cpp
cfe/trunk/test/Coverage/c-language-features.inc
Modified: cfe/trunk/lib/CodeGen/CGExprAgg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprAgg.cpp?rev=92493&r1=92492&r2=92493&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprAgg.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprAgg.cpp Mon Jan 4 12:47:06 2010
@@ -72,6 +72,7 @@
void VisitDeclRefExpr(DeclRefExpr *DRE) { EmitAggLoadOfLValue(DRE); }
void VisitMemberExpr(MemberExpr *ME) { EmitAggLoadOfLValue(ME); }
void VisitUnaryDeref(UnaryOperator *E) { EmitAggLoadOfLValue(E); }
+ void VisitStringLiteral(StringLiteral *E) { EmitAggLoadOfLValue(E); }
void VisitCompoundLiteralExpr(CompoundLiteralExpr *E) {
EmitAggLoadOfLValue(E);
}
Modified: cfe/trunk/test/Coverage/c-language-features.inc
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Coverage/c-language-features.inc?rev=92493&r1=92492&r2=92493&view=diff
==============================================================================
--- cfe/trunk/test/Coverage/c-language-features.inc (original)
+++ cfe/trunk/test/Coverage/c-language-features.inc Mon Jan 4 12:47:06 2010
@@ -179,3 +179,12 @@
// Function which inputs an array
void f9(int x[]) { }
+
+// Object literals.
+void f10() {
+ struct f10_s0 {
+ char iv0[10];
+ } x;
+
+ x = (struct f10_s0) { .iv0 = "name" };
+}
More information about the cfe-commits
mailing list