r283574 - [analyzer] Re-apply r283092, attempt no.4, chunk no.3, fixup 1.

Artem Dergachev via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 7 10:24:06 PDT 2016


Author: dergachev
Date: Fri Oct  7 12:24:06 2016
New Revision: 283574

URL: http://llvm.org/viewvc/llvm-project?rev=283574&view=rev
Log:
[analyzer] Re-apply r283092, attempt no.4, chunk no.3, fixup 1.

Remove the brace default initializer to see if this is what's causing
the msvc crash.

Modified:
    cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h

Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h?rev=283574&r1=283573&r2=283574&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h Fri Oct  7 12:24:06 2016
@@ -255,7 +255,7 @@ public:
   /// allows you to specify where exactly in the auto-generated path diagnostic
   /// the extra note should appear.
   void addNote(StringRef Msg, const PathDiagnosticLocation &Pos,
-                    ArrayRef<SourceRange> Ranges = {}) {
+               ArrayRef<SourceRange> Ranges) {
     PathDiagnosticNotePiece *P =
         new PathDiagnosticNotePiece(Pos, Msg);
 




More information about the cfe-commits mailing list