diff options
author | Sean Callanan <scallanan@apple.com> | 2010-04-23 01:56:36 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2010-04-23 01:56:36 +0000 |
commit | d8993a3f92e4ff2f0bc00fa3c23ec7262bbb9962 (patch) | |
tree | 2b8c9ab66a378c565b35c7ef6b4717864b363832 /tools/edis | |
parent | fafb890ee204d60456d0780ff55a149fa082eaea (diff) | |
download | llvm-d8993a3f92e4ff2f0bc00fa3c23ec7262bbb9962.tar.gz llvm-d8993a3f92e4ff2f0bc00fa3c23ec7262bbb9962.tar.bz2 llvm-d8993a3f92e4ff2f0bc00fa3c23ec7262bbb9962.tar.xz |
Fixed EDOperand to use the operand type, not the
flags, to determine whether or not the operand is
a memory operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/edis')
-rw-r--r-- | tools/edis/EDOperand.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/edis/EDOperand.cpp b/tools/edis/EDOperand.cpp index 495c0574d6..ca8bac1c5b 100644 --- a/tools/edis/EDOperand.cpp +++ b/tools/edis/EDOperand.cpp @@ -227,7 +227,9 @@ uint64_t EDOperand::immediateVal() { } int EDOperand::isMemory() { - switch (Inst.ThisInstInfo->operandFlags[OpIndex]) { + uint8_t operandType = Inst.ThisInstInfo->operandTypes[OpIndex]; + + switch (operandType) { default: return 0; case kOperandTypeX86Memory: |