We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a151fdc commit 751de4cCopy full SHA for 751de4c
llvm/lib/Analysis/ConstantFolding.cpp
@@ -3845,7 +3845,7 @@ static Constant *ConstantFoldFixedVectorCall(
3845
MulVector[I] = Elt0->getSExtValue() * Elt1->getSExtValue();
3846
}
3847
for (unsigned I = 0; I < Result.size(); I++) {
3848
- int64_t IAdd = (int64_t)MulVector[I * 2] + MulVector[I * 2 + 1];
+ int64_t IAdd = (int64_t)MulVector[I * 2] + (int64_t)MulVector[I * 2 + 1];
3849
Result[I] = ConstantInt::get(Ty, IAdd);
3850
3851
0 commit comments