[analyzer] Speed up ExplodedNode::Profile by avoiding copy constructors.

ProgramStateRef::Retain isn't free!

llvm-svn: 169525
This commit is contained in:
Jordan Rose 2012-12-06 18:58:12 +00:00
parent 1ecba4cc69
commit a64c6dbb98
1 changed files with 2 additions and 1 deletions

View File

@ -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