mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
Produce a useful error message for Regression/Verifier/2006-10-15-AddrLabel.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30970 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1d4b6bfd3e
commit
9e76ce97b8
@ -1296,6 +1296,8 @@ UpRTypes : '\\' EUINT64VAL { // Type UpReference
|
||||
CHECK_FOR_ERROR
|
||||
}
|
||||
| UpRTypes '*' { // Pointer type?
|
||||
if (*$1 == Type::LabelTy)
|
||||
GEN_ERROR("Cannot form a pointer to a basic block");
|
||||
$$ = new PATypeHolder(HandleUpRefs(PointerType::get(*$1)));
|
||||
delete $1;
|
||||
CHECK_FOR_ERROR
|
||||
|
Loading…
Reference in New Issue
Block a user