OSDN Git Service

[LLParser] Parse vector GEP constant expression correctly
authorMichael Kuperstein <mkuper@google.com>
Wed, 21 Dec 2016 18:29:47 +0000 (18:29 +0000)
committerMichael Kuperstein <mkuper@google.com>
Wed, 21 Dec 2016 18:29:47 +0000 (18:29 +0000)
commitf4bf65108589fb50c705d02e5dc85771d38f13ff
treef549a6c9bfe9bb1bf9509091f6ef8589d2a1cb63
parent57ab82784ddb8d21eb0041d52f8490d8fd404e29
[LLParser] Parse vector GEP constant expression correctly

The constantexpr parsing was too constrained and rejected legal vector GEPs.
This relaxes it to be similar to the ones for instruction parsing.

This fixes PR30816.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290261 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLParser.cpp
test/Assembler/getelementptr_vec_ce.ll [new file with mode: 0644]
test/Assembler/getelementptr_vec_ce2.ll [new file with mode: 0644]