From eb9ac2cc14b6058c9b9481bbe8b1cd26da6353e1 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 5 Feb 2022 19:30:03 +0000 Subject: [PATCH] [llvm-remark-size-diff] Don't use enum name as auto variable name This was confusing the clang-cmake-x86_64-avx2-linux buildbot (gcc version 5.4.0). --- llvm/tools/llvm-remark-size-diff/RemarkSizeDiff.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/tools/llvm-remark-size-diff/RemarkSizeDiff.cpp b/llvm/tools/llvm-remark-size-diff/RemarkSizeDiff.cpp index 5fdf933078d1..e18bccdd26ce 100644 --- a/llvm/tools/llvm-remark-size-diff/RemarkSizeDiff.cpp +++ b/llvm/tools/llvm-remark-size-diff/RemarkSizeDiff.cpp @@ -135,13 +135,13 @@ struct DiffsCategorizedByFilesPresent { static void printFunctionDiff(const FunctionDiff &FD, llvm::raw_ostream &OS) { // Describe which files the function had remarks in. - auto FilesPresent = FD.getFilesPresent(); - const auto &FuncName = FD.FuncName; + FilesPresent FP = FD.getFilesPresent(); + const std::string &FuncName = FD.FuncName; const int64_t InstDiff = FD.getInstDiff(); assert(InstDiff && "Shouldn't get functions with no size change?"); const int64_t StackDiff = FD.getStackDiff(); // Output an indicator denoting which files the function was present in. - switch (FilesPresent) { + switch (FP) { case FilesPresent::A: OS << "-- "; break;