Fix signed overflow detected by ubsan
This overflow does not affect algorithm, so just suppress it.
gitsvnid: https://llvm.org/svn/llvmproject/llvm/trunk@316018 911773080d340410b5e696231b3b80d8
Vitaly Buka
2 years ago
5438  5438  // First, transform the values such that they start at zero and ascend. 
5439  5439  int64_t Base = Values[0]; 
5440  5440  for (auto &V : Values) 
5441 
V = 

5441  V = (uint64_t)(Base);⏎  
5442  5442  
5443  5443  // Now we have signed numbers that have been shifted so that, given enough 
5444  5444  // precision, there are no negative values. Since the rest of the transform 