[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Chris Lattner
sabre at nondot.org
Sun Oct 15 16:27:00 PDT 2006
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.264 -> 1.265
---
Log message:
Produce a useful error message for Regression/Verifier/2006-10-15-AddrLabel.ll
---
Diffs of the changes: (+2 -0)
llvmAsmParser.y | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.264 llvm/lib/AsmParser/llvmAsmParser.y:1.265
--- llvm/lib/AsmParser/llvmAsmParser.y:1.264 Mon Oct 9 12:36:59 2006
+++ llvm/lib/AsmParser/llvmAsmParser.y Sun Oct 15 18:26:46 2006
@@ -1296,6 +1296,8 @@
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
More information about the llvm-commits
mailing list