1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Produce a useful error message for Regression/Verifier/2006-10-15-AddrLabel.ll

llvm-svn: 30970
This commit is contained in:
Chris Lattner 2006-10-15 23:26:46 +00:00
parent a5383a5b2d
commit 2ac6ca0f82

View File

@ -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