Skip to content

Commit

Permalink
[X86] Initialize Type and Subtype in getHostCPUName to 0.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317341 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
topperc committed Nov 3, 2017
1 parent 604f04f commit 761cb9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Support/Host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 761cb9c

Please sign in to comment.