Fix the build after cd26190a10fceb6e1472fabcd9e1736f62f078c4
authorAaron Ballman <aaron@aaronballman.com>
Thu, 31 Mar 2022 16:02:54 +0000 (12:02 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 31 Mar 2022 16:03:53 +0000 (12:03 -0400)
These variables were being used uninitialized and it caused a
significant number of test failures on Windows.

clang/lib/CodeGen/TargetInfo.cpp

index e1df6f5..c5a031d 100644 (file)
@@ -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() &&