[analyzer] Fix build error after r283660 - remove constexpr strings.
authorArtem Dergachev <artem.dergachev@gmail.com>
Sat, 8 Oct 2016 11:07:21 +0000 (11:07 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Sat, 8 Oct 2016 11:07:21 +0000 (11:07 +0000)
llvm-svn: 283662

clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp

index 8fd36b8..4fece1c 100644 (file)
@@ -107,8 +107,9 @@ class ObjCDeallocChecker
   std::unique_ptr<BugType> ExtraReleaseBugType;
   std::unique_ptr<BugType> MistakenDeallocBugType;
 
-  static constexpr const char *MsgDeclared = "Property is declared here";
-  static constexpr const char *MsgSynthesized = "Property is synthesized here";
+  // FIXME: constexpr initialization isn't supported by MSVC2013.
+  static const char *const MsgDeclared;
+  static const char *const MsgSynthesized;
 
 public:
   ObjCDeallocChecker();
@@ -184,6 +185,11 @@ private:
 
 typedef llvm::ImmutableSet<SymbolRef> SymbolSet;
 
+const char *const ObjCDeallocChecker::MsgDeclared =
+    "Property is declared here";
+const char *const ObjCDeallocChecker::MsgSynthesized =
+    "Property is synthesized here";
+
 /// Maps from the symbol for a class instance to the set of
 /// symbols remaining that must be released in -dealloc.
 REGISTER_MAP_WITH_PROGRAMSTATE(UnreleasedIvarMap, SymbolRef, SymbolSet)