diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-06-15 09:27:20 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-06-15 09:27:20 +0000 |
| commit | 40ed1d89b19856777b2072ab8a0ae89d54b2e440 (patch) | |
| tree | cbcee58ce76a9972c569a0e763a4aea1af98a4c9 /lib/Bitcode/Writer/BitWriter.cpp | |
| parent | 8bfc50e4a976476425e8f2ba7e71d7d14b48b474 (diff) | |
| download | llvm-40ed1d89b19856777b2072ab8a0ae89d54b2e440.tar.gz llvm-40ed1d89b19856777b2072ab8a0ae89d54b2e440.tar.bz2 llvm-40ed1d89b19856777b2072ab8a0ae89d54b2e440.tar.xz | |
LegalizeDAG: make sure cast is unsigned before using FP_TO_UINT.
It's valid to use FP_TO_SINT when asking for a smaller type (e.g. all
"unsigned int16" values fit into a "signed int32"), but the reverse
isn't true.
Unfortunately, I'm not actually aware of any architecture with
asymmetric FP_TO_SINT and FP_TO_UINT handling and the logic happens to
work in the symmetric case, so I can't actually write a test for this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/BitWriter.cpp')
0 files changed, 0 insertions, 0 deletions
