commit | 5375d82d1d096ddd8879d8e6641a8f042b0d1d43 | [log] [tgz] |
---|---|---|
author | Aaron Ballman <aaron@aaronballman.com> | Tue Aug 14 16:46:35 2012 +0000 |
committer | Aaron Ballman <aaron@aaronballman.com> | Tue Aug 14 16:46:35 2012 +0000 |
tree | 066fecf0c4fc56b74fc29ca89805dac1244b6bc0 | |
parent | c6ba23f207410efcaf93132790218b9f9bcebe43 [diff] |
Changing an enumeration to a const int to fix MSVC compiler warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161877 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h b/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h index 01218ef..8044ed8 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
@@ -52,7 +52,9 @@ int64_t Offset; public: - enum { Symbolic = INT64_MAX }; + // We're using a const instead of an enumeration due to the size required; + // Visual Studio will only create enumerations of size int, not long long. + static const int64_t Symbolic = INT64_MAX; RegionOffset() : R(0) {} RegionOffset(const MemRegion *r, int64_t off) : R(r), Offset(off) {}