commit | 81cff31ccf3e1b7dd35653c964ea25d1733ba409 | [log] [tgz] |
---|---|---|
author | Anton Korobeynikov <anton@korobeynikov.info> | Thu Jan 17 15:21:55 2019 +0000 |
committer | Anton Korobeynikov <anton@korobeynikov.info> | Thu Jan 17 15:21:55 2019 +0000 |
tree | 8a9faf08b7378de5784a08df362401bc6eb79eb2 | |
parent | ce5b5b486a71939913b1a0909498f216b5528401 [diff] |
CodeGen: Cast llvm.flt.rounds result to match __builtin_flt_rounds llvm.flt.rounds returns an i32, but the builtin expects an integer. On targets where integers are not 32-bits clang tries to bitcast the result, causing an assertion failure. The patch enables newlib build for msp430. Patch by Edward Jones! Differential Revision: https://reviews.llvm.org/D24461 llvm-svn: 351449