OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02c0e36
)
label* is not a valid type, add an assertion.
author
Chris Lattner
<sabre@nondot.org>
Sun, 15 Oct 2006 23:21:12 +0000
(23:21 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 15 Oct 2006 23:21:12 +0000
(23:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30968
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Type.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Type.cpp
b/lib/VMCore/Type.cpp
index
b7cf54d
..
e87da1d
100644
(file)
--- a/
lib/VMCore/Type.cpp
+++ b/
lib/VMCore/Type.cpp
@@
-1204,6
+1204,7
@@
PointerType *PointerType::get(const Type *ValueType) {
assert(ValueType && "Can't get a pointer to <null> type!");
assert(ValueType != Type::VoidTy &&
"Pointer to void is not valid, use sbyte* instead!");
+ assert(ValueType != Type::LabelTy && "Pointer to label is not valid!");
PointerValType PVT(ValueType);
PointerType *PT = PointerTypes->get(PVT);