summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2016-10-08 11:07:21 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2016-10-08 11:07:21 +0000
commit83ebea4cb662be715bb1e08664a03163582e8a17 (patch)
tree8c236986574b8537f13dfb4354c3d2572fd36185 /clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
parent4eca0de7b7f470bf16ff4140132ff5711ab1da82 (diff)
downloadbcm5719-llvm-83ebea4cb662be715bb1e08664a03163582e8a17.tar.gz
bcm5719-llvm-83ebea4cb662be715bb1e08664a03163582e8a17.zip
[analyzer] Fix build error after r283660 - remove constexpr strings.
llvm-svn: 283662
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp b/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
index 8fd36b82866..4fece1c7fff 100644
--- a/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
@@ -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)
OpenPOWER on IntegriCloud