mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
use getArgOperand instead of getOperand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107270 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
351cbac4d3
commit
ad72e73136
@ -559,7 +559,7 @@ static bool isAddressUse(Instruction *Inst, Value *OperandVal) {
|
||||
case Intrinsic::x86_sse2_storeu_pd:
|
||||
case Intrinsic::x86_sse2_storeu_dq:
|
||||
case Intrinsic::x86_sse2_storel_dq:
|
||||
if (II->getOperand(1) == OperandVal)
|
||||
if (II->getArgOperand(0) == OperandVal)
|
||||
isAddress = true;
|
||||
break;
|
||||
}
|
||||
@ -581,7 +581,7 @@ static const Type *getAccessType(const Instruction *Inst) {
|
||||
case Intrinsic::x86_sse2_storeu_pd:
|
||||
case Intrinsic::x86_sse2_storeu_dq:
|
||||
case Intrinsic::x86_sse2_storel_dq:
|
||||
AccessTy = II->getOperand(1)->getType();
|
||||
AccessTy = II->getArgOperand(0)->getType();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user