From: Aaron Ballman Date: Thu, 31 Mar 2022 16:02:54 +0000 (-0400) Subject: Fix the build after cd26190a10fceb6e1472fabcd9e1736f62f078c4 X-Git-Tag: upstream/15.0.7~11834 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2267549296dabfed31ce194bb124f7bdb91f74c5;p=platform%2Fupstream%2Fllvm.git Fix the build after cd26190a10fceb6e1472fabcd9e1736f62f078c4 These variables were being used uninitialized and it caused a significant number of test failures on Windows. --- diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index e1df6f505b17..c5a031d5487c 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -3960,7 +3960,7 @@ void X86_64ABIInfo::computeInfo(CGFunctionInfo &FI) const { // Keep track of the number of assigned registers. unsigned FreeIntRegs = IsRegCall ? 11 : 6; unsigned FreeSSERegs = IsRegCall ? 16 : 8; - unsigned NeededInt, NeededSSE, MaxVectorWidth = 0; + unsigned NeededInt = 0, NeededSSE = 0, MaxVectorWidth = 0; if (!::classifyReturnType(getCXXABI(), FI, *this)) { if (IsRegCall && FI.getReturnType()->getTypePtr()->isRecordType() &&