aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/TargetParser.cpp
diff options
context:
space:
mode:
authorpeter klausler <pklausler@nvidia.com>2020-10-14 15:57:49 -0700
committerpeter klausler <pklausler@nvidia.com>2020-10-15 10:38:48 -0700
commit2aad6a0884e3372fef8176902cf984d2f385d938 (patch)
tree304ef0177e2ac9696990205e54e2a88a37505ea0 /llvm/lib/Support/TargetParser.cpp
parentcf6fd404f339c4bab4f246fb131435553aadc940 (diff)
downloadllvm-2aad6a0884e3372fef8176902cf984d2f385d938.zip
llvm-2aad6a0884e3372fef8176902cf984d2f385d938.tar.gz
llvm-2aad6a0884e3372fef8176902cf984d2f385d938.tar.bz2
[flang][msvc] Avoid a reinterpret_cast
The call to the binary->decimal formatter in real.cpp was cheating by using a reinterpret_cast<> to extract its binary value. Use a more principled and portable approach by extending the API of evaluate::Integer<> to include ToUInt<>()/ToSInt<>() member function templates that do the "right" thing. Retain ToUInt64()/ToSInt64() for compatibility. Differential revision: https://reviews.llvm.org/D89435
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
0 files changed, 0 insertions, 0 deletions