Skip to content

Commit

Permalink
[llvm-remark-size-diff] Don't use enum name as auto variable name
Browse files Browse the repository at this point in the history
This was confusing the clang-cmake-x86_64-avx2-linux buildbot (gcc version 5.4.0).
  • Loading branch information
RKSimon committed Feb 5, 2022
1 parent 764cd49 commit eb9ac2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/tools/llvm-remark-size-diff/RemarkSizeDiff.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit eb9ac2c

Please sign in to comment.