OSDN Git Service

Fixed bot failure after d20bf5a7258d4b6a7
authorAlok Kumar Sharma <AlokKumar.Sharma@amd.com>
Thu, 28 May 2020 09:42:28 +0000 (15:12 +0530)
committerSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Thu, 28 May 2020 10:12:04 +0000 (15:42 +0530)
There were some bot failures due unused funtion `rotateSign`
left in code.

http://lab.llvm.org:8011/builders/clang-ppc64le-rhel/builds/3731

error: unused function 'rotateSign' [-Werror,-Wunused-function]
static uint64_t rotateSign(int64_t I)

llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

index 9da1437..a46339a 100644 (file)
@@ -1519,11 +1519,6 @@ void ModuleBitcodeWriter::writeGenericDINode(const GenericDINode *N,
   Record.clear();
 }
 
-static uint64_t rotateSign(int64_t I) {
-  uint64_t U = I;
-  return I < 0 ? ~(U << 1) : U << 1;
-}
-
 void ModuleBitcodeWriter::writeDISubrange(const DISubrange *N,
                                           SmallVectorImpl<uint64_t> &Record,
                                           unsigned Abbrev) {