Skip to content

Commit 3364be7

Browse files
Matt DavisMatt Davis
Matt Davis
authored and
Matt Davis
committed
[llvm-mca] Rename an error variable.
llvm-svn: 349662
1 parent 84a00bd commit 3364be7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/tools/llvm-mca/llvm-mca.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ int main(int argc, char **argv) {
339339
Expected<const mca::CodeRegions &> RegionsOrErr = CRG.parseCodeRegions();
340340
if (!RegionsOrErr) {
341341
if (auto Err =
342-
handleErrors(RegionsOrErr.takeError(), [](const StringError &Err) {
343-
WithColor::error() << Err.getMessage() << '\n';
342+
handleErrors(RegionsOrErr.takeError(), [](const StringError &E) {
343+
WithColor::error() << E.getMessage() << '\n';
344344
})) {
345345
// Default case.
346346
WithColor::error() << toString(std::move(Err)) << '\n';

0 commit comments

Comments
 (0)