projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f43c4c5
)
Fix the build after cd26190a10fceb6e1472fabcd9e1736f62f078c4
author
Aaron Ballman
<aaron@aaronballman.com>
Thu, 31 Mar 2022 16:02:54 +0000
(12:02 -0400)
committer
Aaron 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
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/TargetInfo.cpp
b/clang/lib/CodeGen/TargetInfo.cpp
index e1df6f505b17c281400293cc26189072a3266494..c5a031d5487cfa41861d395c9f8f07fd96bccaa5 100644
(file)
--- 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() &&