[cfe-commits] r147171 - /cfe/trunk/lib/Sema/SemaInit.cpp

Nick Lewycky nicholas at mxc.ca
Thu Dec 22 12:21:32 PST 2011


Author: nicholas
Date: Thu Dec 22 14:21:32 2011
New Revision: 147171

URL: http://llvm.org/viewvc/llvm-project?rev=147171&view=rev
Log:
Fix build under -Wswitch by adding support for FK_ListConstructorOverloadFailed
to initialization sequence dumping.

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=147171&r1=147170&r2=147171&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaInit.cpp (original)
+++ cfe/trunk/lib/Sema/SemaInit.cpp Thu Dec 22 14:21:32 2011
@@ -5665,6 +5665,10 @@
     case FK_PlaceholderType:
       OS << "initializer expression isn't contextually valid";
       break;
+
+    case FK_ListConstructorOverloadFailed:
+      OS << "list constructor overloading failed";
+      break;
     }
     OS << '\n';
     return;





More information about the cfe-commits mailing list