[all-commits] [llvm/llvm-project] f2264e: [ConstantFolding] Fix -Wunused-variable warning (NFC)
nullptr-cpp via All-commits
all-commits at lists.llvm.org
Fri May 28 01:19:21 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f2264ebb087272d49e2216476a62f3208ba5a1ea
https://github.com/llvm/llvm-project/commit/f2264ebb087272d49e2216476a62f3208ba5a1ea
Author: Yang Fan <nullptr.cpp at gmail.com>
Date: 2021-05-28 (Fri, 28 May 2021)
Changed paths:
M llvm/lib/Analysis/ConstantFolding.cpp
Log Message:
-----------
[ConstantFolding] Fix -Wunused-variable warning (NFC)
GCC warning:
```
/llvm-project/llvm/lib/Analysis/ConstantFolding.cpp: In function ‘llvm::Constant* llvm::ConstantFoldLoadFromConstPtr(llvm::Constant*, llvm::Type*, const llvm::DataLayout&)’:
/llvm-project/llvm/lib/Analysis/ConstantFolding.cpp:713:19: warning: unused variable ‘SimplifiedGEP’ [-Wunused-variable]
713 | if (auto *SimplifiedGEP = dyn_cast<GEPOperator>(Simplified)) {
| ^~~~~~~~~~~~~
```
More information about the All-commits
mailing list