[llvm] 4d73cbe - [nfc]remove unused variable after pr/81691 (#82578)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 21:10:50 PST 2024


Author: Mingming Liu
Date: 2024-02-21T21:10:47-08:00
New Revision: 4d73cbe863886add6742a8ebd00d19c1cab11095

URL: https://github.com/llvm/llvm-project/commit/4d73cbe863886add6742a8ebd00d19c1cab11095
DIFF: https://github.com/llvm/llvm-project/commit/4d73cbe863886add6742a8ebd00d19c1cab11095.diff

LOG: [nfc]remove unused variable after pr/81691 (#82578)

* `N` became unused after [pull request 81691](https://github.com/llvm/llvm-project/pull/81691)
* This should fix the build bot failure of `unused variable`
https://lab.llvm.org/buildbot/#/builders/77/builds/34840

Added: 
    

Modified: 
    llvm/lib/ProfileData/InstrProfWriter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp
index e5163ebe8ae37a..3e0a0e0d70116d 100644
--- a/llvm/lib/ProfileData/InstrProfWriter.cpp
+++ b/llvm/lib/ProfileData/InstrProfWriter.cpp
@@ -456,7 +456,6 @@ Error InstrProfWriter::writeImpl(ProfOStream &OS) {
   Header.BinaryIdOffset = 0;
   Header.TemporalProfTracesOffset = 0;
   Header.VTableNamesOffset = 0;
-  int N = sizeof(IndexedInstrProf::Header) / sizeof(uint64_t);
 
   // Only write out the first four fields. We need to remember the offset of the
   // remaining fields to allow back patching later.


        


More information about the llvm-commits mailing list