[llvm] a249551 - [llvm][Transform] Remove unused variable. [NFCI]
Francesco Petrogalli via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 4 09:40:59 PST 2019
Author: Francesco Petrogalli
Date: 2019-12-04T17:40:30Z
New Revision: a249551bb232414b68525d40cd7bae617293c67b
URL: https://github.com/llvm/llvm-project/commit/a249551bb232414b68525d40cd7bae617293c67b
DIFF: https://github.com/llvm/llvm-project/commit/a249551bb232414b68525d40cd7bae617293c67b.diff
LOG: [llvm][Transform] Remove unused variable. [NFCI]
The variable prevents compiling when using -Werror=unused-variable.
Added:
Modified:
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 0e74a26987ca..fe47f6bde218 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -1395,7 +1395,7 @@ static bool HoistThenElseCodeToIf(BranchInst *BI,
for (auto DIVariableInst : UndefDVIs) {
DbgVariableIntrinsic *DVI = DIVariableInst.second;
DVI->moveBefore(BI);
- if (Value *V = DVI->getVariableLocation())
+ if (DVI->getVariableLocation())
setDbgVariableUndef(DVI);
}
More information about the llvm-commits
mailing list