mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
AsmParser: extractvalue requires at least one index operand
llvm-svn: 229365
This commit is contained in:
parent
7f40c08dca
commit
4f5d97ee4f
@ -1633,6 +1633,7 @@ bool LLParser::ParseIndexList(SmallVectorImpl<unsigned> &Indices,
|
||||
|
||||
while (EatIfPresent(lltok::comma)) {
|
||||
if (Lex.getKind() == lltok::MetadataVar) {
|
||||
if (Indices.empty()) return TokError("expected index");
|
||||
AteExtraComma = true;
|
||||
return false;
|
||||
}
|
||||
|
8
test/Assembler/extractvalue-no-idx.ll
Normal file
8
test/Assembler/extractvalue-no-idx.ll
Normal file
@ -0,0 +1,8 @@
|
||||
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
|
||||
|
||||
; CHECK: expected index
|
||||
|
||||
define void @f1() {
|
||||
extractvalue <{ i32, i32 }> undef, !dbg !0
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue
Block a user