Copy-paste errors found by PVS-Studio. (dotnet/coreclr#10450)
authorIlya <DieselMachine84@users.noreply.github.com>
Fri, 24 Mar 2017 15:48:02 +0000 (18:48 +0300)
committerJan Vorlicek <janvorli@microsoft.com>
Fri, 24 Mar 2017 15:48:02 +0000 (16:48 +0100)
commita633f16ac1bff0f1db1ae38e2913e7e4097a4838
tree392a7b75d32e4579483bc489e2c3cf315d27aed7
parent03b119cefae05f920867db4c32336ee07544e9d6
Copy-paste errors found by PVS-Studio. (dotnet/coreclr#10450)

I used PVS-Studio static analyzer to check this project. I would like to suggest a variant of the way to fix the copy-paste errors, detected with the help of V778 diagnostic. Description of the diagnostic: https://www.viva64.com/en/w/V778/

Commit migrated from https://github.com/dotnet/coreclr/commit/3c61ffd676603bb14d4e815e1e249f816d4cbc74
src/coreclr/src/ildasm/dasm.cpp
src/coreclr/src/jit/lclvars.cpp
src/coreclr/src/vm/peimage.cpp