summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingFile.c
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-05-25 13:58:54 +0000
committerTeresa Johnson <tejohnson@google.com>2016-05-25 13:58:54 +0000
commitd9b88999208d5220a5e42784ae7bc1c22ea9057e (patch)
treeede8ebe2417b685a02452d6469144ecced7ff655 /lib/profile/InstrProfilingFile.c
parent9dfeca2386c28762468cddb4c9e16bfa8f25a15e (diff)
Fix braced initializer list (NFC)
After r270617 I am getting an error when building: projects/compiler-rt/lib/profile/InstrProfilingFile.c:33:36: error: missing field 'PidChars' initializer [-Werror,-Wmissing-field-initializers] lprofFilename lprofCurFilename = {0}; ^ Fix the aggregate initializer. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@270697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingFile.c')
-rw-r--r--lib/profile/InstrProfilingFile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/profile/InstrProfilingFile.c b/lib/profile/InstrProfilingFile.c
index 12d145d9c..69c03253c 100644
--- a/lib/profile/InstrProfilingFile.c
+++ b/lib/profile/InstrProfilingFile.c
@@ -30,7 +30,7 @@ typedef struct lprofFilename {
unsigned NumHosts;
} lprofFilename;
-lprofFilename lprofCurFilename = {0};
+lprofFilename lprofCurFilename = {0, {0}, {0}, 0, 0};
int getpid(void);
static int getCurFilenameLength();