]> granicus.if.org Git - clang/commitdiff
[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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283662 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp

index 8fd36b828663a1689ea083a09b9464cffba0a0e7..4fece1c7fff6f550adc4abbe7d33f340da48c627 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)