diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2014-10-04 19:58:30 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2014-10-04 19:58:30 +0000 |
commit | 66304c2262b3efcc681e70c8ef39824cf7237686 (patch) | |
tree | 04cbcea1066b2dc13b12178eb077defe80295887 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | d2f1281e6c03346acec0a9461f37c0d554cd3dd6 (diff) | |
download | llvm-66304c2262b3efcc681e70c8ef39824cf7237686.zip llvm-66304c2262b3efcc681e70c8ef39824cf7237686.tar.gz llvm-66304c2262b3efcc681e70c8ef39824cf7237686.tar.bz2 |
Solve Visual C++ warning C4805 on getAsInteger<bool>.
Fix http://llvm.org/PR21158 by adding a cast to unsigned long long,
so the comparison would be between two unsigned long longs instead
of bool and unsigned long long.
if (getAsUnsignedInteger(*this, Radix, ULLVal) ||
static_cast<unsigned long long>(static_cast<T>(ULLVal)) != ULLVal)
llvm-svn: 219065
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions