[cfe-commits] r161877 - /cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h

Aaron Ballman aaron at aaronballman.com
Tue Aug 14 09:46:35 PDT 2012


Author: aaronballman
Date: Tue Aug 14 11:46:35 2012
New Revision: 161877

URL: http://llvm.org/viewvc/llvm-project?rev=161877&view=rev
Log:
Changing an enumeration to a const int to fix MSVC compiler warnings.

Modified:
    cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h

Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h?rev=161877&r1=161876&r2=161877&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h Tue Aug 14 11:46:35 2012
@@ -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) {}





More information about the cfe-commits mailing list