Patch for non standard usage of math functions

In lib/Analysis/ScalarEvolution.cpp there is a call to sqrt with an int64_t argument - To make this call in standard C++ a cast to double is required.

In lib/CodeGen/LiveIntervalAnalysis.cppn there is a call to pow where the second argument is an unsigned int. The standard C++ call is with 'int' and the compiler does not know if it should promote the unsigned int to float or double so it cannot resolve the overloaded pow function. I solved this by casting to int...


diff.txt (1.49 KB)