Skip to content

Commit 2e7489c

Browse files
committed
[VectorCombine] Fix build on gcc-7.5
Hopefully this fixes the build failure at https://lab.llvm.org/buildbot/#/builders/116/builds/13423. gcc-14 seems to be able to deduce the type and compile this fine, but for gcc-7 we need to avoid the Use/Value mismatch I guess.
1 parent 26bae79 commit 2e7489c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ bool VectorCombine::scalarizeOpOrCmp(Instruction &I) {
10521052
SmallVector<Value *> ScalarOps;
10531053
std::optional<uint64_t> Index;
10541054

1055-
auto Ops = II ? II->args() : I.operand_values();
1055+
auto Ops = II ? II->args() : I.operands();
10561056
for (Value *Op : Ops) {
10571057
Constant *VecC;
10581058
Value *V;

0 commit comments

Comments
 (0)