[llvm] aa61e43 - [InstCombine] Fix a compilation bug

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 02:52:58 PDT 2020


Thanks!

On Mon, Aug 17, 2020 at 8:00 AM Yonghong Song via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
>
>
> Author: Yonghong Song
> Date: 2020-08-16T21:56:42-07:00
> New Revision: aa61e43040495235706229a7bde748a9beff137b
>
> URL: https://github.com/llvm/llvm-project/commit/aa61e43040495235706229a7bde748a9beff137b
> DIFF: https://github.com/llvm/llvm-project/commit/aa61e43040495235706229a7bde748a9beff137b.diff
>
> LOG: [InstCombine] Fix a compilation bug
>
> With gcc 6.3.0, I hit the following compilation bug.
>   ../lib/Transforms/InstCombine/InstCombineVectorOps.cpp:937:2: error: extra ‘;’ [-Werror=pedantic]
>    };
>     ^
>   cc1plus: all warnings being treated as errors
>
> The error is introduced by Commit ae7f08812e09 ("[InstCombine]
> Aggregate reconstruction simplification (PR47060)")
>
> Added:
>
>
> Modified:
>     llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
>
> Removed:
>
>
>
> ################################################################################
> diff  --git a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
> index 4d0e58b4118f..a10493b1008f 100644
> --- a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
> +++ b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
> @@ -934,7 +934,7 @@ Instruction *InstCombinerImpl::foldAggregateConstructionIntoAggregateReuse(
>
>    ++NumAggregateReconstructionsSimplified;
>    return PHI;
> -};
> +}
>
>  /// Try to find redundant insertvalue instructions, like the following ones:
>  ///  %0 = insertvalue { i8, i32 } undef, i8 %x, 0
>
>
>
> _______________________________________________
> 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