OSDN Git Service

X86AsmParser AVX-512: Return error instead of hitting assert
authorCraig Topper <craig.topper@intel.com>
Tue, 19 Feb 2019 17:13:40 +0000 (17:13 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 19 Feb 2019 17:13:40 +0000 (17:13 +0000)
commit15752e187761f01dda18f80fddc7efbfae5b4449
treea0de6fbcfb1e860aeed3848ed49626dfc08b11d6
parent7300bbb81417143f104b75d2491a96e4f2437dcd
X86AsmParser AVX-512: Return error instead of hitting assert

When parsing a sequence of tokens beginning with {, it will hit an assert and crash if the token afterwards is not an identifier. Instead of this, return a more verbose error as seen elsewhere in the function.

Patch by Brandon Jones (BrandonTJones)

Differential Revision: https://reviews.llvm.org/D57375

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354356 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
test/MC/X86/avx512-err.s