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)) {
| ^~~~~~~~~~~~~
```
// fold it if the resulting pointer operand is a GlobalValue. Otherwise
// there is nothing else to simplify since the GEP is already in the
// most simplified form.
- if (auto *SimplifiedGEP = dyn_cast<GEPOperator>(Simplified)) {
+ if (isa<GEPOperator>(Simplified)) {
if (auto *GV = dyn_cast<GlobalVariable>(Simplified->getOperand(0))) {
if (GV->isConstant() && GV->hasDefinitiveInitializer()) {
if (Constant *V = ConstantFoldLoadThroughGEPConstantExpr(