[llvm] a0d847c - Fixed bot failure after d20bf5a7258d4b6a7
Sourabh Singh Tomar via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 03:13:54 PDT 2020
Author: Alok Kumar Sharma
Date: 2020-05-28T15:42:04+05:30
New Revision: a0d847c6cdcbe167213d91313577c57073d5c013
URL: https://github.com/llvm/llvm-project/commit/a0d847c6cdcbe167213d91313577c57073d5c013
DIFF: https://github.com/llvm/llvm-project/commit/a0d847c6cdcbe167213d91313577c57073d5c013.diff
LOG: Fixed bot failure after d20bf5a7258d4b6a7
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)
Added:
Modified:
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 9da1437b56b2..a46339a4ec1f 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -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) {
More information about the llvm-commits
mailing list