[cfe-commits] r94874 - /cfe/trunk/lib/Sema/SemaInit.cpp
Anders Carlsson
andersca at mac.com
Fri Jan 29 17:56:33 PST 2010
Author: andersca
Date: Fri Jan 29 19:56:32 2010
New Revision: 94874
URL: http://llvm.org/viewvc/llvm-project?rev=94874&view=rev
Log:
Eliminate yet another old-school PerformCopyInitialization.
Modified:
cfe/trunk/lib/Sema/SemaInit.cpp
Modified: cfe/trunk/lib/Sema/SemaInit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaInit.cpp?rev=94874&r1=94873&r2=94874&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaInit.cpp (original)
+++ cfe/trunk/lib/Sema/SemaInit.cpp Fri Jan 29 19:56:32 2010
@@ -705,7 +705,9 @@
} else {
// We cannot initialize this element, so let
// PerformCopyInitialization produce the appropriate diagnostic.
- SemaRef.PerformCopyInitialization(expr, ElemType, Sema::AA_Initializing);
+ SemaRef.PerformCopyInitialization(Entity, SourceLocation(),
+ SemaRef.Owned(expr));
+ IList->setInit(Index, 0);
hadError = true;
++Index;
++StructuredIndex;
More information about the cfe-commits
mailing list