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:
a1b953b
)
findDeadCallerSavedReg fix: Missing NULL terminator in register arrays.
author
Andrew Trick
<atrick@apple.com>
Fri, 12 Aug 2011 00:49:19 +0000
(
00:49
+0000)
committer
Andrew Trick
<atrick@apple.com>
Fri, 12 Aug 2011 00:49:19 +0000
(
00:49
+0000)
Fix by Ivan Baev. Sorry I don't have a unit test, but the fix is obvious so I don't want to delay it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137404
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86FrameLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86FrameLowering.cpp
b/lib/Target/X86/X86FrameLowering.cpp
index d5e9aa6d6422b87a2b0433956459feb3ba93dbfa..d4d7d0dcc9c0a2922be0c2179c641a89a895f89f 100644
(file)
--- a/
lib/Target/X86/X86FrameLowering.cpp
+++ b/
lib/Target/X86/X86FrameLowering.cpp
@@
-98,12
+98,12
@@
static unsigned findDeadCallerSavedReg(MachineBasicBlock &MBB,
return 0;
static const unsigned CallerSavedRegs32Bit[] = {
- X86::EAX, X86::EDX, X86::ECX
+ X86::EAX, X86::EDX, X86::ECX
, 0
};
static const unsigned CallerSavedRegs64Bit[] = {
X86::RAX, X86::RDX, X86::RCX, X86::RSI, X86::RDI,
- X86::R8, X86::R9, X86::R10, X86::R11
+ X86::R8, X86::R9, X86::R10, X86::R11
, 0
};
unsigned Opc = MBBI->getOpcode();