[cfe-commits] r60577 - /cfe/trunk/lib/Analysis/MemRegion.cpp
Ted Kremenek
kremenek at apple.com
Thu Dec 4 18:39:38 PST 2008
Author: kremenek
Date: Thu Dec 4 20:39:38 2008
New Revision: 60577
URL: http://llvm.org/viewvc/llvm-project?rev=60577&view=rev
Log:
Use trait-based profiling of SymbolRefs, avoiding calling getNumber() (which will soon be removed).
Modified:
cfe/trunk/lib/Analysis/MemRegion.cpp
Modified: cfe/trunk/lib/Analysis/MemRegion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/MemRegion.cpp?rev=60577&r1=60576&r2=60577&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/MemRegion.cpp (original)
+++ cfe/trunk/lib/Analysis/MemRegion.cpp Thu Dec 4 20:39:38 2008
@@ -92,7 +92,7 @@
void SymbolicRegion::ProfileRegion(llvm::FoldingSetNodeID& ID, SymbolRef sym) {
ID.AddInteger((unsigned) MemRegion::SymbolicRegionKind);
- ID.AddInteger(sym.getNumber());
+ ID.Add(sym);
}
void SymbolicRegion::Profile(llvm::FoldingSetNodeID& ID) const {
More information about the cfe-commits
mailing list