]> granicus.if.org Git - clang/commit
Enable control flow pruning of float overflow warnings.
authorRichard Trieu <rtrieu@google.com>
Mon, 14 May 2018 23:21:48 +0000 (23:21 +0000)
committerRichard Trieu <rtrieu@google.com>
Mon, 14 May 2018 23:21:48 +0000 (23:21 +0000)
commit1680f6cae0743d6cb02267464e15c91ad031abc2
treea7624b412e44c8f8edd987976e635e146016f2f2
parent82cd820babf3a0f09c8e566a8445b3eee09412f4
Enable control flow pruning of float overflow warnings.

Like other conversion warnings, allow float overflow warnings to be disabled
in known dead paths of template instantiation.  This often occurs when a
template template type is a numeric type and the template will check the
range of the numeric type before performing the conversion.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332310 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/SemaCXX/warn-float-conversion.cpp