From 6637b0607127f0df5a4f4c8180c02c1e041d4682 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 19 Feb 2013 02:32:05 +0000 Subject: [PATCH] Fixing a typo where FixIts was accidentally self-assigning instead of assigning in the parameter Fixits. This fixes several failed assertions with MSVC debug builds. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175483 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Diagnostic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Basic/Diagnostic.cpp b/lib/Basic/Diagnostic.cpp index 2b448058a0..153c31e3d1 100644 --- a/lib/Basic/Diagnostic.cpp +++ b/lib/Basic/Diagnostic.cpp @@ -959,7 +959,7 @@ StoredDiagnostic::StoredDiagnostic(DiagnosticsEngine::Level Level, unsigned ID, : ID(ID), Level(Level), Loc(Loc), Message(Message) { this->Ranges.assign(Ranges.begin(), Ranges.end()); - this->FixIts.assign(FixIts.begin(), FixIts.end()); + this->FixIts.assign(Fixits.begin(), Fixits.end()); } StoredDiagnostic::~StoredDiagnostic() { } -- 2.40.0