From: Adrian McCarthy Date: Tue, 20 Sep 2016 17:42:13 +0000 (+0000) Subject: Fix syntactical nit from r281990. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=864e0ffb0eb47f848aca60d1f08fc2962fbb5009;p=llvm Fix syntactical nit from r281990. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281991 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index f5f7b136316..13e98c3f991 100644 --- a/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -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::emitCompilerInformation() { // 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);