aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorNick Desaulniers <nickdesaulniers@users.noreply.github.com>2023-12-04 13:12:51 -0800
committerGitHub <noreply@github.com>2023-12-04 13:12:51 -0800
commit0d59cfc7a3446dc6078dfc57783048f490d8d998 (patch)
treed8d338c61b3cacab406a318aeaf46011f5fa076b /clang/lib/Frontend/CompilerInvocation.cpp
parentd1cdcddcc2ef712c4e2ab61c6e4ca83350e7e9e3 (diff)
downloadllvm-0d59cfc7a3446dc6078dfc57783048f490d8d998.zip
llvm-0d59cfc7a3446dc6078dfc57783048f490d8d998.tar.gz
llvm-0d59cfc7a3446dc6078dfc57783048f490d8d998.tar.bz2
[libc] fix -Wconversion in float_to_string.h (#74369)
Fixes: libc/src/__support/float_to_string.h:551:48: error: conversion from ‘long unsigned int’ to ‘int32_t’ {aka ‘int’} may change value [-Werror=conversion] 551 | const int32_t shift_amount = SHIFT_CONST + (-exponent - IDX_SIZE * idx); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Observed in gcc fullbuilds. IDX_SIZE is a size_t (aka 'long unsigned int'), but has the value 128, so the expression is undergoing implicit promotion. Link: https://lab.llvm.org/buildbot/#/builders/250/builds/14891
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions