mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
use getNumArgOperands instead of getNumOperands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107272 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f14c8c7c1
commit
237e1da16a
@ -449,7 +449,7 @@ uint32_t ValueTable::lookup_or_add_call(CallInst* C) {
|
||||
if (local_dep.isDef()) {
|
||||
CallInst* local_cdep = cast<CallInst>(local_dep.getInst());
|
||||
|
||||
if (local_cdep->getNumOperands() != C->getNumOperands()) {
|
||||
if (local_cdep->getNumArgOperands() != C->getNumArgOperands()) {
|
||||
valueNumbering[C] = nextValueNumber;
|
||||
return nextValueNumber++;
|
||||
}
|
||||
@ -506,7 +506,7 @@ uint32_t ValueTable::lookup_or_add_call(CallInst* C) {
|
||||
return nextValueNumber++;
|
||||
}
|
||||
|
||||
if (cdep->getNumOperands() != C->getNumOperands()) {
|
||||
if (cdep->getNumArgOperands() != C->getNumArgOperands()) {
|
||||
valueNumbering[C] = nextValueNumber;
|
||||
return nextValueNumber++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user