summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-10-19 22:57:33 +0000
committerChad Rosier <mcrosier@apple.com>2012-10-19 22:57:33 +0000
commitf1f6a72901830a453a9737703ee926cb5f52fb79 (patch)
tree3fa1a54612744790cd14a6cbfaa0c74f0186f6f5 /llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
parent66e2b20d3981d0e2c13345a6155c6abbffdafadb (diff)
downloadbcm5719-llvm-f1f6a72901830a453a9737703ee926cb5f52fb79.tar.gz
bcm5719-llvm-f1f6a72901830a453a9737703ee926cb5f52fb79.zip
[ms-inline asm] Reset the opcode prior to parsing a statement.
llvm-svn: 166349
Diffstat (limited to 'llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp')
-rw-r--r--llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
index 70f6ef766f8..e07fafcb207 100644
--- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -1553,9 +1553,6 @@ MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
assert(Op->isToken() && "Leading operand should always be a mnemonic!");
ArrayRef<SMRange> EmptyRanges = ArrayRef<SMRange>();
- // Clear the opcode.
- Opcode = ~0x0;
-
// First, handle aliases that expand to multiple instructions.
// FIXME: This should be replaced with a real .td file alias mechanism.
// Also, MatchInstructionImpl should actually *do* the EmitInstruction
OpenPOWER on IntegriCloud