projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67edee1
)
Remove extra assert in dyn_cast_or_null.
author
Vikram S. Adve
<vadve@cs.uiuc.edu>
Wed, 17 Oct 2001 22:39:50 +0000
(22:39 +0000)
committer
Vikram S. Adve
<vadve@cs.uiuc.edu>
Wed, 17 Oct 2001 22:39:50 +0000
(22:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@856
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Value.h
patch
|
blob
|
history
diff --git
a/include/llvm/Value.h
b/include/llvm/Value.h
index 0519bb736e8af5f8721b3d4bf427a1b423d59249..771bb22d323a60d7cf2d3c2b1fc4cf9b7351faa2 100644
(file)
--- a/
include/llvm/Value.h
+++ b/
include/llvm/Value.h
@@
-237,8
+237,6
@@
inline X *dyn_cast(Y Val) {
//
template <class X, class Y>
inline X *dyn_cast_or_null(Y Val) {
- assert((Val == 0 || isa<X>(Val)) &&
- "cast_or_null<Ty>() argument of uncompatible type!");
return (Val && isa<X>(Val)) ? cast<X>(Val) : 0;
}