[clang] 0415cf4 - Fix unused variable warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 18 08:51:14 PST 2020
Author: Simon Pilgrim
Date: 2020-11-18T16:50:51Z
New Revision: 0415cf470bfbf16a06938424c3cad30c12cc2284
URL: https://github.com/llvm/llvm-project/commit/0415cf470bfbf16a06938424c3cad30c12cc2284
DIFF: https://github.com/llvm/llvm-project/commit/0415cf470bfbf16a06938424c3cad30c12cc2284.diff
LOG: Fix unused variable warning. NFCI.
We're just performing a null pointer check, we don't need the actual variable.
Added:
Modified:
clang/lib/AST/APValue.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/APValue.cpp b/clang/lib/AST/APValue.cpp
index f8df221f5705..c249e778db48 100644
--- a/clang/lib/AST/APValue.cpp
+++ b/clang/lib/AST/APValue.cpp
@@ -1062,7 +1062,7 @@ LinkageInfo LinkageComputer::getLVForValue(const APValue &V,
}
case APValue::Union:
- if (const auto *FD = V.getUnionField())
+ if (V.getUnionField())
Merge(V.getUnionValue());
break;
More information about the cfe-commits
mailing list