[all-commits] [llvm/llvm-project] 52ce95: [NFC] Prevent shadowing a variable declared in `if`
Ken Matsui via All-commits
all-commits at lists.llvm.org
Thu Apr 28 19:22:40 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 52ce95a1a55424256f0d56e32392396896ed7f76
https://github.com/llvm/llvm-project/commit/52ce95a1a55424256f0d56e32392396896ed7f76
Author: Ken Matsui <26405363+ken-matsui at users.noreply.github.com>
Date: 2022-04-28 (Thu, 28 Apr 2022)
Changed paths:
M clang/lib/Basic/Diagnostic.cpp
Log Message:
-----------
[NFC] Prevent shadowing a variable declared in `if`
Prevents confusion over which `S` is referenced in the final `else`
branch if such use is added.
Reviewed By: hubert.reinterpretcast
Differential Revision: https://reviews.llvm.org/D124556
More information about the All-commits
mailing list