summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAdrian McCarthy <amccarth@google.com>2016-09-20 17:42:13 +0000
committerAdrian McCarthy <amccarth@google.com>2016-09-20 17:42:13 +0000
commitad8ac54d10ccf74cb31cb2b52924b75b62a1aeef (patch)
tree6aebc59c2f7571fccb64f41b95b2243e93e88509 /llvm/lib/CodeGen
parentc64acfd4c26eb7dd876433e2033cffca679e2791 (diff)
downloadbcm5719-llvm-ad8ac54d10ccf74cb31cb2b52924b75b62a1aeef.tar.gz
bcm5719-llvm-ad8ac54d10ccf74cb31cb2b52924b75b62a1aeef.zip
Fix syntactical nit from r281990.
llvm-svn: 281991
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index f5f7b136316..13e98c3f991 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud