Author: dergachev Date: Sat Oct 8 06:07:21 2016 New Revision: 283662 URL: http://llvm.org/viewvc/llvm-project?rev=283662&view=rev Log: [analyzer] Fix build error after r283660 - remove constexpr strings.
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp?rev=283662&r1=283661&r2=283662&view=diff ============================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp (original) +++ cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp Sat Oct 8 06:07:21 2016 @@ -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) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits