OSDN Git Service

[X86] Don't call validateInstruction from MatchAndEmitInstruction when MatchingInline...
authorCraig Topper <craig.topper@intel.com>
Wed, 8 Nov 2017 19:38:48 +0000 (19:38 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 8 Nov 2017 19:38:48 +0000 (19:38 +0000)
commit9799e6facceb82fc92e40454ec80091a12d02bcf
tree779adb277c1b4b2ea5549b07cde4ede2461e8de3
parentca3cf87eee51252131f6811abfa4fec89f0ac560
[X86] Don't call validateInstruction from MatchAndEmitInstruction when MatchingInlineAsm is set. The MCInst won't be populated.

Without this we can't parse gather instructions in ms inline asm blocks. The validateInstruction function was introduced in r316700 to check gather constraints.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317713 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp