Skip to content

Commit

Permalink
Fix unused variable warning. NFCI.
Browse files Browse the repository at this point in the history
We're just performing a null pointer check, we don't need the actual variable.
  • Loading branch information
RKSimon committed Nov 18, 2020
1 parent 057e6bb commit 0415cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/AST/APValue.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 0415cf4

Please sign in to comment.