Skip to content

Commit 506e507

Browse files
committed
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
1 parent 692b01b commit 506e507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/Analysis/GRConstants.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace {
4747
class VISIBILITY_HIDDEN DSPtr {
4848
uintptr_t Raw;
4949
public:
50-
enum VariantKind { IsValueDecl=0x0, IsSubExp=0x1, IsBlkLvl=0x2, Flags=0x3 };
50+
enum VariantKind { IsSubExp=0x0, IsValueDecl=0x1, IsBlkLvl=0x2, Flags=0x3 };
5151
inline void* getPtr() const { return reinterpret_cast<void*>(Raw & ~Flags); }
5252
inline VariantKind getKind() const { return (VariantKind) (Raw & Flags); }
5353

0 commit comments

Comments
 (0)