[all-commits] [llvm/llvm-project] 691ba0: [clang][NFC] Avoid assignment in condition
Nathan Sidwell via All-commits
all-commits at lists.llvm.org
Fri Jun 11 03:54:31 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 691ba0f8acb511f7da1e78c59fe9560b64c47f3a
https://github.com/llvm/llvm-project/commit/691ba0f8acb511f7da1e78c59fe9560b64c47f3a
Author: Nathan Sidwell <nathan at acm.org>
Date: 2021-06-11 (Fri, 11 Jun 2021)
Changed paths:
M clang/lib/Sema/SemaDecl.cpp
Log Message:
-----------
[clang][NFC] Avoid assignment in condition
Refactor to avoid assignment inside condition by using 'if
(init-decl)'. Also remove some unnecessary braces on a separate
if-nest.
Differential Revision: https://reviews.llvm.org/D104039
More information about the All-commits
mailing list