[all-commits] [llvm/llvm-project] 590cc0: Use different name for auto variable

Serge Pavlov via All-commits all-commits at lists.llvm.org
Thu Sep 24 03:33:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 590cc068c160f3b623d47fb34fd1d26848cb0e0a
      https://github.com/llvm/llvm-project/commit/590cc068c160f3b623d47fb34fd1d26848cb0e0a
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2020-09-24 (Thu, 24 Sep 2020)

  Changed paths:
    M llvm/lib/Support/JSON.cpp

  Log Message:
  -----------
  Use different name for auto variable

Without this change GCC 5.4.0 failed to compile JSON.cpp with the error:

    .../llvm-project/llvm/lib/Support/JSON.cpp: In lambda function:
    .../llvm-project/llvm/lib/Support/JSON.cpp:291:29: error: use of 'V' before deduction of 'auto'
           for (const auto &V : *V.getAsArray())




More information about the All-commits mailing list