From 741e7e6a71dba6eb0e75ecd77ee36f007aad4dde Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 3 Nov 2017 18:02:44 +0000 Subject: [PATCH] [X86] Initialize Type and Subtype in getHostCPUName to 0. llvm-svn: 317341 --- llvm/lib/Support/Host.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index c167df5..40ed87b 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -1057,8 +1057,8 @@ StringRef sys::getHostCPUName() { detectX86FamilyModel(EAX, &Family, &Model); getAvailableFeatures(ECX, EDX, MaxLeaf, &Features, &Features2); - unsigned Type; - unsigned Subtype; + unsigned Type = 0; + unsigned Subtype = 0; if (Vendor == SIG_INTEL) { getIntelProcessorTypeAndSubtype(Family, Model, Brand_id, Features, -- 2.7.4