forked from OSchip/llvm-project
[InstCombine] Fixed std::min on some bots. NFCI
This commit is contained in:
parent
4a59eedd2d
commit
0e32fbd223
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue