mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Make valgrind happy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150251 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
38a7f22445
commit
1de886c1fa
@ -1903,7 +1903,7 @@ bool ARMTargetLowering::isUsedByReturnOnly(SDNode *N) const {
|
||||
return false;
|
||||
|
||||
unsigned NumCopies = 0;
|
||||
SDNode* Copies[2];
|
||||
SDNode* Copies[2] = { 0, 0 };
|
||||
SDNode *Use = *N->use_begin();
|
||||
if (Use->getOpcode() == ISD::CopyToReg) {
|
||||
Copies[NumCopies++] = Use;
|
||||
@ -1938,7 +1938,7 @@ bool ARMTargetLowering::isUsedByReturnOnly(SDNode *N) const {
|
||||
UI != UE; ++UI) {
|
||||
if (UI->getOpcode() == ISD::CopyToReg) {
|
||||
SDNode *Use = *UI;
|
||||
if (Use == Copies[0] || Use == Copies[1])
|
||||
if (Use == Copies[0] || ((NumCopies == 2) && (Use == Copies[1])))
|
||||
continue;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user