[llvm] e26ed6b - Fix unused variable warning

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 15 12:01:55 PDT 2020


A more informative commit message might be "remove unused variable" -
more specific about what's being changed rather than the more
open-ended "fixed" (fixed how? with a (void) cast? (sometimes the
right answer, but generally I would scrutinize that a bit more, for
instance))

On Tue, Jun 9, 2020 at 1:56 AM Guillaume Chatelet via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
>
>
> Author: Guillaume Chatelet
> Date: 2020-06-09T08:56:05Z
> New Revision: e26ed6bdaec4460bbcb8761e7c1105cdc7a55c83
>
> URL: https://github.com/llvm/llvm-project/commit/e26ed6bdaec4460bbcb8761e7c1105cdc7a55c83
> DIFF: https://github.com/llvm/llvm-project/commit/e26ed6bdaec4460bbcb8761e7c1105cdc7a55c83.diff
>
> LOG: Fix unused variable warning
>
> Added:
>
>
> Modified:
>     llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
>
> Removed:
>
>
>
> ################################################################################
> diff  --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
> index 80f03c422284..7dbf805c7a13 100644
> --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
> +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
> @@ -2010,8 +2010,8 @@ Align SelectionDAG::getReducedAlign(EVT VT, bool UseABI) {
>      EVT IntermediateVT;
>      MVT RegisterVT;
>      unsigned NumIntermediates;
> -    unsigned NumRegs = TLI->getVectorTypeBreakdown(
> -        *getContext(), VT, IntermediateVT, NumIntermediates, RegisterVT);
> +    TLI->getVectorTypeBreakdown(*getContext(), VT, IntermediateVT,
> +                                NumIntermediates, RegisterVT);
>      Ty = IntermediateVT.getTypeForEVT(*getContext());
>      Align RedAlign2 = UseABI ? DL.getABITypeAlign(Ty) : DL.getPrefTypeAlign(Ty);
>      if (RedAlign2 < RedAlign)
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list