[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)
commite6094f9bd9d6e0c5fe4ee0ad02c4d7407e4388e7
tree3e2b02c02304201a71bbb0fafd2b09805d6611e8
parent81d772c28a205b2cc63cc1e3198a9f457c48b95b
[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.

llvm-svn: 317713
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp