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:
1d63a16
)
Add assertion checks to nail bugs early.
author
Chris Lattner
<sabre@nondot.org>
Wed, 21 Aug 2002 22:14:28 +0000
(22:14 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 21 Aug 2002 22:14:28 +0000
(22:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3424
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/PassAnalysisSupport.h
patch
|
blob
|
history
diff --git
a/include/llvm/PassAnalysisSupport.h
b/include/llvm/PassAnalysisSupport.h
index 43c353d4d9e02cff973036c3520fae0320ff80a9..fac8cea545f6cea06d2aec8a30e7b1018efeafc0 100644
(file)
--- a/
include/llvm/PassAnalysisSupport.h
+++ b/
include/llvm/PassAnalysisSupport.h
@@
-39,6
+39,7
@@
public:
}
template<class PassClass>
AnalysisUsage &addRequired() {
+ assert(Pass::getClassPassInfo<PassClass>() && "Pass class not registered!");
Required.push_back(Pass::getClassPassInfo<PassClass>());
return *this;
}
@@
-53,6
+54,7
@@
public:
template<class PassClass>
AnalysisUsage &addPreserved() {
+ assert(Pass::getClassPassInfo<PassClass>() && "Pass class not registered!");
Preserved.push_back(Pass::getClassPassInfo<PassClass>());
return *this;
}