[llvm] r281991 - Fix syntactical nit from r281990.

Adrian McCarthy via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 20 10:42:14 PDT 2016


Author: amccarth
Date: Tue Sep 20 12:42:13 2016
New Revision: 281991

URL: http://llvm.org/viewvc/llvm-project?rev=281991&view=rev
Log:
Fix syntactical nit from r281990.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp?rev=281991&r1=281990&r2=281991&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp Tue Sep 20 12:42:13 2016
@@ -546,7 +546,7 @@ struct Version {
 // Takes a StringRef like "clang 4.0.0.0 (other nonsense 123)" and parses out
 // the version number.
 static Version parseVersion(StringRef Name) {
-  Version V = {0};
+  Version V = {{0}};
   int N = 0;
   for (const char C : Name) {
     if (isdigit(C)) {
@@ -614,11 +614,11 @@ void CodeViewDebug::emitCompilerInformat
   // Some Microsoft tools, like Binscope, expect a backend version number of at
   // least 8.something, so we'll coerce the LLVM version into a form that
   // guarantees it'll be big enough without really lying about the version.
-  Version BackVer = {
+  Version BackVer = {{
       1000 * LLVM_VERSION_MAJOR +
       10 * LLVM_VERSION_MINOR +
       LLVM_VERSION_PATCH,
-      0, 0, 0 };
+      0, 0, 0 }};
   OS.AddComment("Backend version");
   for (int N = 0; N < 4; ++N)
     OS.EmitIntValue(BackVer.Part[N], 2);




More information about the llvm-commits mailing list