[all-commits] [llvm/llvm-project] 1b4c0c: [libc++] Avoid potential truncation warnings in st...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Fri Nov 19 11:22:39 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1b4c0cb3918a9f2d12f8259407fc8bce053e78bf
https://github.com/llvm/llvm-project/commit/1b4c0cb3918a9f2d12f8259407fc8bce053e78bf
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2021-11-19 (Fri, 19 Nov 2021)
Changed paths:
R libcxx/test/std/numerics/c.math/abs.fail.cpp
A libcxx/test/std/numerics/c.math/abs.verify.cpp
Log Message:
-----------
[libc++] Avoid potential truncation warnings in std::abs test
One some platforms, -Wimplicit-int-conversion is enabled by default,
which can lead to additional warnings being triggered in this test.
Since we're only trying to test errors related to calling abs(), the
assignment is superfluous.
As a fly-by fix, correct one instance of ::abs to std::abs and made
the test a .verify.cpp test instead.
Differential Revision: https://reviews.llvm.org/D114244
More information about the All-commits
mailing list