aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorAlok Kumar Sharma <AlokKumar.Sharma@amd.com>2020-05-28 15:12:28 +0530
committerSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>2020-05-28 15:42:04 +0530
commita0d847c6cdcbe167213d91313577c57073d5c013 (patch)
treed035f9d373d21b7b14796912b9aa00e0edaba726 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent8a397b66b2c672999e9e6d63334d5bffd7db1a3f (diff)
downloadllvm-a0d847c6cdcbe167213d91313577c57073d5c013.zip
llvm-a0d847c6cdcbe167213d91313577c57073d5c013.tar.gz
llvm-a0d847c6cdcbe167213d91313577c57073d5c013.tar.bz2
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)
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 9da1437..a46339a 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) {