aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitstreamReader.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-05-10 18:24:17 +0000
committerChad Rosier <mcrosier@apple.com>2013-05-10 18:24:17 +0000
commitc8569cba93b9f25c5d3bfa3e24ba926ca65c2910 (patch)
treec2e724597e79738deeab4941ec2aef08ee2380e9 /llvm/lib/Bitcode/Reader/BitstreamReader.cpp
parent140a837acd3651032d8160ccfda1e5ccbe8eb14e (diff)
downloadllvm-c8569cba93b9f25c5d3bfa3e24ba926ca65c2910.zip
llvm-c8569cba93b9f25c5d3bfa3e24ba926ca65c2910.tar.gz
llvm-c8569cba93b9f25c5d3bfa3e24ba926ca65c2910.tar.bz2
[ms-inline asm] Fix a crasher when we fail on a direct match.
The issue was that the MatchingInlineAsm and VariantID args to the MatchInstructionImpl function weren't being set properly. Specifically, when parsing intel syntax, the parser thought it was parsing inline assembly in the at&t dialect; that will never be the case. The crash was caused when the emitter tried to emit the instruction, but the operands weren't set. When parsing inline assembly we only set the opcode, not the operands, which is used to lookup the instruction descriptor. rdar://13854391 and PR15945 Also, this commit reverts r176036. Now that we're correctly parsing the intel syntax the pushad/popad don't match properly. I've reimplemented that fix using a MnemonicAlias. llvm-svn: 181620
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitstreamReader.cpp')
0 files changed, 0 insertions, 0 deletions