[all-commits] [llvm/llvm-project] e6bd98: [clang][CodeGen] Fix gcc warning about unused vari...
mikaelholmen via All-commits
all-commits at lists.llvm.org
Wed Jan 17 04:23:40 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e6bd9835d90c8c30ceeb05338e80d75cf41a3b84
https://github.com/llvm/llvm-project/commit/e6bd9835d90c8c30ceeb05338e80d75cf41a3b84
Author: Mikael Holmen <mikael.holmen at ericsson.com>
Date: 2024-01-17 (Wed, 17 Jan 2024)
Changed paths:
M clang/lib/CodeGen/CGBuiltin.cpp
Log Message:
-----------
[clang][CodeGen] Fix gcc warning about unused variable [NFC]
Without the fix gcc warned with
../../clang/lib/CodeGen/CGBuiltin.cpp:1022:19: warning: unused variable 'DRE' [-Wunused-variable]
1022 | if (const auto *DRE = dyn_cast<DeclRefExpr>(Base)) {
| ^~~
Fix the warning by removing the unused variable and change the "dyn_cast"
to "isa".
More information about the All-commits
mailing list