aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorBilly Robert O'Neal III <bion@microsoft.com>2017-05-08 21:54:53 +0000
committerBilly Robert O'Neal III <bion@microsoft.com>2017-05-08 21:54:53 +0000
commit362ea7329fc8bd5a7080a78d606066024ac40b11 (patch)
tree2e5945c9eb45ea89ae39e1f5d034324ebc274ab1 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent8c401179a33273d9e606a648881885564298b989 (diff)
downloadllvm-362ea7329fc8bd5a7080a78d606066024ac40b11.zip
llvm-362ea7329fc8bd5a7080a78d606066024ac40b11.tar.gz
llvm-362ea7329fc8bd5a7080a78d606066024ac40b11.tar.bz2
Fix possible loss of data warnings on amd64
In T_size_size.pass, there is an explicit template argument to std::min to ask for unsigned, to avoid type deduction errors. However, C1XX' warnings still hate this use, because a 64 bit value (a size_t) is being passed to a function accepting an unsigned (a 32 bit value). Instead, change the tests to pass around std::size_t instances, and explicitly narrow when constructing the string type under test. This also allows removal of explicit template arguments to std::min. llvm-svn: 302473
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions