From 506e507508b69ef8350c2de8e6fa66a463f292a0 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 16 Jan 2008 23:35:31 +0000 Subject: Changed sorting criteria for DSPtr to put sub-expressions first in the value map. This will allow us to quickly prune them from maps without searching the entire map. llvm-svn: 46101 --- clang/Analysis/GRConstants.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/Analysis/GRConstants.cpp b/clang/Analysis/GRConstants.cpp index 6c0958e..1aadf8a 100644 --- a/clang/Analysis/GRConstants.cpp +++ b/clang/Analysis/GRConstants.cpp @@ -47,7 +47,7 @@ namespace { class VISIBILITY_HIDDEN DSPtr { uintptr_t Raw; public: - enum VariantKind { IsValueDecl=0x0, IsSubExp=0x1, IsBlkLvl=0x2, Flags=0x3 }; + enum VariantKind { IsSubExp=0x0, IsValueDecl=0x1, IsBlkLvl=0x2, Flags=0x3 }; inline void* getPtr() const { return reinterpret_cast(Raw & ~Flags); } inline VariantKind getKind() const { return (VariantKind) (Raw & Flags); } -- cgit v1.1