[llvm-mca] Rename an error variable.

llvm-svn: 349662
This commit is contained in:
Matt Davis 2018-12-19 18:57:43 +00:00
parent e18c511248
commit 8c2021a240

View File

@ -339,8 +339,8 @@ int main(int argc, char **argv) {
Expected<const mca::CodeRegions &> RegionsOrErr = CRG.parseCodeRegions();
if (!RegionsOrErr) {
if (auto Err =
handleErrors(RegionsOrErr.takeError(), [](const StringError &Err) {
WithColor::error() << Err.getMessage() << '\n';
handleErrors(RegionsOrErr.takeError(), [](const StringError &E) {
WithColor::error() << E.getMessage() << '\n';
})) {
// Default case.
WithColor::error() << toString(std::move(Err)) << '\n';