Fixed EDOperand to use the operand type, not the
authorSean Callanan <scallanan@apple.com>
Fri, 23 Apr 2010 01:56:36 +0000 (01:56 +0000)
committerSean Callanan <scallanan@apple.com>
Fri, 23 Apr 2010 01:56:36 +0000 (01:56 +0000)
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

tools/edis/EDOperand.cpp

index 495c0574d6cdcdedf4461faae8d978738d22c053..ca8bac1c5b4d8b12e82d2e6bb4d2e7a960fa5ce9 100644 (file)
@@ -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: