OSDN Git Service

Silence gcc warning in testcase [NFC]
authorMikael Holmen <mikael.holmen@ericsson.com>
Fri, 28 Jun 2019 06:45:20 +0000 (06:45 +0000)
committerMikael Holmen <mikael.holmen@ericsson.com>
Fri, 28 Jun 2019 06:45:20 +0000 (06:45 +0000)
commit5550ec1afa61f63755e3eebd72712a78d51cf305
tree1cf2fd2c820c1a390befcd1782374bd89fc5f3f2
parent90bbc45f62ad91f07fb6092e21f4fa7508671e04
Silence gcc warning in testcase [NFC]

Without the fix gcc (7.4.0) complains with

../unittests/ADT/APIntTest.cpp: In member function 'virtual void {anonymous}::APIntTest_MultiplicativeInverseExaustive_Test::TestBody()':
../unittests/ADT/APIntTest.cpp:2510:36: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (unsigned Value = 0; Value < (1 << BitWidth); ++Value) {
                              ~~~~~~^~~~~~~~~~~~~~~~~

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364624 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/ADT/APIntTest.cpp