[InstCombine] Fixed std::min on some bots. NFCI

This commit is contained in:
Dávid Bolvanský 2019-11-26 11:06:06 +01:00
parent 4a59eedd2d
commit 0e32fbd223
1 changed files with 1 additions and 1 deletions

View File

@ -1150,7 +1150,7 @@ Value *LibCallSimplifier::optimizeMemCCpy(CallInst *CI, IRBuilder<> &B) {
}
Value *NewN =
ConstantInt::get(N->getType(), std::min(Pos + 1, N->getZExtValue()));
ConstantInt::get(N->getType(), std::min(uint64_t(Pos + 1), N->getZExtValue()));
// memccpy -> llvm.memcpy
B.CreateMemCpy(Dst, 1, Src, 1, NewN);
return Pos + 1 <= N->getZExtValue()