[llvm] aa61e43 - [InstCombine] Fix a compilation bug
Yonghong Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 16 22:00:27 PDT 2020
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
More information about the llvm-commits
mailing list