projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab5ceac
)
Start with a zeroed CSRNum map.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Thu, 2 Jun 2011 12:07:44 +0000
(12:07 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Thu, 2 Jun 2011 12:07:44 +0000
(12:07 +0000)
Found by valgrind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132457
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/RegisterClassInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/RegisterClassInfo.cpp
b/lib/CodeGen/RegisterClassInfo.cpp
index 9deeb15a3b56098c137c91349d76d7c2d5c0fa7b..2d56ec3341b215ba57fa4b8d0243691e8a809f1a 100644
(file)
--- a/
lib/CodeGen/RegisterClassInfo.cpp
+++ b/
lib/CodeGen/RegisterClassInfo.cpp
@@
-39,7
+39,7
@@
void RegisterClassInfo::runOnMachineFunction(const MachineFunction &mf) {
if (Update || CSR != CalleeSaved) {
// Build a CSRNum map. Every CSR alias gets an entry pointing to the last
// overlapping CSR.
- CSRNum.reset(new uint8_t[TRI->getNumRegs()]);
+ CSRNum.reset(new uint8_t[TRI->getNumRegs()]
()
);
for (unsigned N = 0; unsigned Reg = CSR[N]; ++N)
for (const unsigned *AS = TRI->getOverlaps(Reg);
unsigned Alias = *AS; ++AS)