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 | 6a0ecf5798bf730965b87e6f5558f85f45d8e294 (patch) | |
tree | 2b8c9ab66a378c565b35c7ef6b4717864b363832 /tools | |
parent | 82a7a20b64e974ef3694e51f22eee8ca8b97dd4e (diff) | |
download | external_llvm-6a0ecf5798bf730965b87e6f5558f85f45d8e294.zip external_llvm-6a0ecf5798bf730965b87e6f5558f85f45d8e294.tar.gz external_llvm-6a0ecf5798bf730965b87e6f5558f85f45d8e294.tar.bz2 |
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')
-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 495c057..ca8bac1 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: |