forked from OSchip/llvm-project
[analyzer] Speed up ExplodedNode::Profile by avoiding copy constructors.
ProgramStateRef::Retain isn't free! llvm-svn: 169525
This commit is contained in:
parent
1ecba4cc69
commit
a64c6dbb98
|
@ -174,7 +174,8 @@ public:
|
|||
}
|
||||
|
||||
void Profile(llvm::FoldingSetNodeID& ID) const {
|
||||
Profile(ID, getLocation(), getState(), isSink());
|
||||
// We avoid copy constructors by not using accessors.
|
||||
Profile(ID, Location, State, isSink());
|
||||
}
|
||||
|
||||
/// addPredeccessor - Adds a predecessor to the current node, and
|
||||
|
|
Loading…
Reference in New Issue