[llvm] 4897429 - [NFC] Inline variable to prevent unused variable warning
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 13 09:59:42 PDT 2021
Author: Arthur Eubanks
Date: 2021-07-13T09:57:59-07:00
New Revision: 489742991f7dc4c621264d223e8973ff876e9080
URL: https://github.com/llvm/llvm-project/commit/489742991f7dc4c621264d223e8973ff876e9080
DIFF: https://github.com/llvm/llvm-project/commit/489742991f7dc4c621264d223e8973ff876e9080.diff
LOG: [NFC] Inline variable to prevent unused variable warning
Added:
Modified:
llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp b/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
index f1a2e7fd2b17..aaf586173e44 100644
--- a/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
@@ -99,10 +99,9 @@ struct StoreToLoadForwardingCandidate {
Loop *L) const {
Value *LoadPtr = Load->getPointerOperand();
Value *StorePtr = Store->getPointerOperand();
- Type *LoadPtrType = LoadPtr->getType();
Type *LoadType = getLoadStoreType(Load);
- assert(LoadPtrType->getPointerAddressSpace() ==
+ assert(LoadPtr->getType()->getPointerAddressSpace() ==
StorePtr->getType()->getPointerAddressSpace() &&
LoadType == getLoadStoreType(Store) &&
"Should be a known dependence");
More information about the llvm-commits
mailing list