This is an archive of the discontinued LLVM Phabricator instance.

Clean up some comments in MathExtras.h.
ClosedPublic

Authored by jlebar on Jul 16 2016, 3:20 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

jlebar updated this revision to Diff 64236.Jul 16 2016, 3:20 PM
jlebar retitled this revision from to Clean up some comments in MathExtras.h..
jlebar updated this object.
jlebar added a reviewer: rnk.
jlebar added subscribers: dylanmckay, llvm-commits.
compnerd accepted this revision.Jul 16 2016, 6:31 PM
compnerd added a reviewer: compnerd.
compnerd added a subscriber: compnerd.
compnerd added inline comments.
include/llvm/Support/MathExtras.h
820 ↗(On Diff #64236)

Unnecessary whitespace

This revision is now accepted and ready to land.Jul 16 2016, 6:31 PM
jlebar updated this revision to Diff 64241.Jul 16 2016, 11:10 PM
jlebar edited edge metadata.

Fix whitespace nit.

jlebar marked an inline comment as done.Jul 16 2016, 11:11 PM
This revision was automatically updated to reflect the committed changes.

This probably responsible for http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/14727

Testing: 0 ..
FAIL: LLVM-Unit :: Support/SupportTests/MathExtras.minIntN (1452 of 17328)

  • TEST 'LLVM-Unit :: Support/SupportTests/MathExtras.minIntN' FAILED ****

Note: Google Test filter = MathExtras.minIntN
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from MathExtras
[ RUN ] MathExtras.minIntN
/mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/include/llvm/Support/MathExtras.h:340:10: runtime error: negation of -9223372036854775808 cannot be represented in type 'long'; cast to an unsigned type to negate this value to itself

#0 0x4fb9e3 in llvm::minIntN(long) /mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/include/llvm/Support/MathExtras.h:340:10
#1 0x4e9583 in (anonymous namespace)::MathExtras_minIntN_Test::TestBody() /mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/unittests/Support/MathExtrasTest.cpp:132:3
#2 0x6c22a9 in testing::Test::Run() /mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/utils/unittest/googletest/src/gtest.cc:2161:5
#3 0x6c2d13 in testing::TestInfo::Run() /mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/utils/unittest/googletest/src/gtest.cc:2309:11
#4 0x6c3432 in testing::TestCase::Run() /mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/utils/unittest/googletest/src/gtest.cc:2416:28
#5 0x6c8703 in testing::internal::UnitTestImpl::RunAllTests() /mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/utils/unittest/googletest/src/gtest.cc:4207:43
#6 0x6d4f51 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/utils/unittest/googletest/src/gtest.cc:2142:12
#7 0x6c83ae in testing::UnitTest::Run() /mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/utils/unittest/googletest/src/gtest.cc:3841:10
#8 0x6ba984 in main /mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/utils/unittest/UnitTestMain/TestMain.cpp:48:10
#9 0x7f23b4d18f44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21f44)
#10 0x4191b6 in _start (/mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm_build_ubsan/unittests/Support/SupportTests+0x4191b6)

Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
Testing Time: 97.53s


Failing Tests (1):

LLVM-Unit :: Support/SupportTests/MathExtras.minIntN

It's already fixed by r275815