summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/cpu_model.c
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2016-07-08 16:18:38 +0000
committerAlina Sbirlea <asbirlea@google.com>2016-07-08 16:18:38 +0000
commit7847598113e36d7f2151421c44b71c763ee69e7e (patch)
treec9687ed140e3e1e2daeb980c0ae442837fe47e61 /compiler-rt/lib/builtins/cpu_model.c
parent05241bfe7abbeae39e572fd9cdcc4f27decbeb00 (diff)
downloadbcm5719-llvm-7847598113e36d7f2151421c44b71c763ee69e7e.tar.gz
bcm5719-llvm-7847598113e36d7f2151421c44b71c763ee69e7e.zip
Add default initialization. Add unit test.
llvm-svn: 274867
Diffstat (limited to 'compiler-rt/lib/builtins/cpu_model.c')
-rw-r--r--compiler-rt/lib/builtins/cpu_model.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/cpu_model.c b/compiler-rt/lib/builtins/cpu_model.c
index 0b09b0660ac..7b76f9e39a4 100644
--- a/compiler-rt/lib/builtins/cpu_model.c
+++ b/compiler-rt/lib/builtins/cpu_model.c
@@ -706,7 +706,7 @@ struct __processor_model {
unsigned int __cpu_type;
unsigned int __cpu_subtype;
unsigned int __cpu_features[1];
-} __cpu_model;
+} __cpu_model = { 0, 0, 0, { 0 } };
/* A constructor function that is sets __cpu_model and __cpu_features with
the right values. This needs to run only once. This constructor is
OpenPOWER on IntegriCloud