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:
bac0622
)
Stronger assertion in getNodeId(): node id must exist in the map.
author
Vikram S. Adve
<vadve@cs.uiuc.edu>
Fri, 6 Dec 2002 21:19:07 +0000
(21:19 +0000)
committer
Vikram S. Adve
<vadve@cs.uiuc.edu>
Fri, 6 Dec 2002 21:19:07 +0000
(21:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4949
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Analysis/IPModRef.h
patch
|
blob
|
history
diff --git
a/include/llvm/Analysis/IPModRef.h
b/include/llvm/Analysis/IPModRef.h
index 78da986268c7c0e21168a4b6592a63ed91f2e1ad..1b472e91f9e38bd174d703a69727fd599c1babcd 100644
(file)
--- a/
include/llvm/Analysis/IPModRef.h
+++ b/
include/llvm/Analysis/IPModRef.h
@@
-153,8
+153,8
@@
public:
//
unsigned getNodeId (const DSNode* node) const {
std::map<const DSNode*, unsigned>::const_iterator iter = NodeIds.find(node);
- assert(iter
== NodeIds.end() ||
iter->second < funcModRefInfo.getSize());
- return
(iter == NodeIds.end())? funcModRefInfo.getSize() :
iter->second;
+ assert(iter
!= NodeIds.end() &&
iter->second < funcModRefInfo.getSize());
+ return iter->second;
}
unsigned getNodeId (const Value* value) const;