[all-commits] [llvm/llvm-project] 430744: [SCEV] Fix -Wunused-variable warning (NFC)
nullptr-cpp via All-commits
all-commits at lists.llvm.org
Wed Apr 21 01:02:42 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4307446e9fba75c8dd9a36576f1f972c5b5ccc4c
https://github.com/llvm/llvm-project/commit/4307446e9fba75c8dd9a36576f1f972c5b5ccc4c
Author: Yang Fan <nullptr.cpp at gmail.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)
Changed paths:
M llvm/lib/Analysis/ScalarEvolution.cpp
Log Message:
-----------
[SCEV] Fix -Wunused-variable warning (NFC)
GCC warning:
```
/llvm-project/llvm/lib/Analysis/ScalarEvolution.cpp: In member function ‘const llvm::SCEV* llvm::ScalarEvolution::getLosslessPtrToIntExpr(const llvm::SCEV*, unsigned int)::SCEVPtrToIntSinkingRewriter::visitUnknown(const llvm::SCEVUnknown*)’:
/llvm-project/llvm/lib/Analysis/ScalarEvolution.cpp:1152:13: warning: unused variable ‘ExprPtrTy’ [-Wunused-variable]
1152 | Type *ExprPtrTy = Expr->getType();
| ^~~~~~~~~
```
Commit: c09277b0d8402cd3702a01f6314d6f81a7838da0
https://github.com/llvm/llvm-project/commit/c09277b0d8402cd3702a01f6314d6f81a7838da0
Author: Yang Fan <nullptr.cpp at gmail.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)
Changed paths:
M lld/ELF/SyntheticSections.cpp
Log Message:
-----------
[lld][ELF] Fix "enumeral and non-enumeral type in conditional expression" warning (NFC)
GCC warning:
```
/llvm-project/lld/ELF/SyntheticSections.cpp: In member function ‘virtual void lld::elf::VersionTableSection::writeTo(uint8_t*)’:
/llvm-project/lld/ELF/SyntheticSections.cpp:3128:34: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
3128 | write16(buf, s.sym->isLazy() ? VER_NDX_GLOBAL : s.sym->versionId);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Compare: https://github.com/llvm/llvm-project/compare/7f9717b922d4...c09277b0d840
More information about the All-commits
mailing list