]> granicus.if.org Git - clang/commit
[Diagnostics] Call setMapping on the correct diagnostic states in a few places. GetCu...
authorCraig Topper <craig.topper@gmail.com>
Thu, 26 Nov 2015 05:51:54 +0000 (05:51 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 26 Nov 2015 05:51:54 +0000 (05:51 +0000)
commit63199306ad26b827b023a110dd2ac47fa1fb04d3
tree7fad9236ca916cb362a8bdb815a10a409d01ef59
parent5a36f5afc3dde23f6a9f10c4e980ca7dfea11a16
[Diagnostics] Call setMapping on the correct diagnostic states in a few places. GetCurDiagState() was being used when it shouldn't be.

I spotted this by inspection in the for loop that wasn't using its iterator and was just acting on the current state repeatedly.

This appears to have been introduced as a copy and paste bug in r140763 over 4 years ago.

I have no idea how to test this. I just went back to the original commit and tried to use the variables it was using before that.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254134 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Diagnostic.cpp