[clang] 1f55d77 - [clang][bytecode][NFC] Remove unused parameter from pushData() (#114801)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 4 08:14:10 PST 2024


Author: Timm Baeder
Date: 2024-11-04T17:14:05+01:00
New Revision: 1f55d771894e6f95c5401d8fec5c83538a6b8e9f

URL: https://github.com/llvm/llvm-project/commit/1f55d771894e6f95c5401d8fec5c83538a6b8e9f
DIFF: https://github.com/llvm/llvm-project/commit/1f55d771894e6f95c5401d8fec5c83538a6b8e9f.diff

LOG: [clang][bytecode][NFC] Remove unused parameter from pushData() (#114801)

Added: 
    

Modified: 
    clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp b/clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp
index 27b20e258d94f4..dd02eb25c3fa1f 100644
--- a/clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp
+++ b/clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp
@@ -108,8 +108,7 @@ struct BitcastBuffer {
     ++SizeInBits;
   }
 
-  void pushData(const std::byte *data, size_t BitOffset, size_t BitWidth,
-                bool BigEndianTarget) {
+  void pushData(const std::byte *data, size_t BitWidth, bool BigEndianTarget) {
     bool OnlyFullBytes = BitWidth % 8 == 0;
     unsigned NBytes = BitWidth / 8;
 
@@ -346,9 +345,9 @@ static bool readPointerToBuffer(const Context &Ctx, const Pointer &FromPtr,
 
         if (BitWidth != (Buff.size() * 8) && BigEndianTarget) {
           Buffer.pushData(Buff.data() + (Buff.size() - 1 - (BitWidth / 8)),
-                          BitOffset, BitWidth, BigEndianTarget);
+                          BitWidth, BigEndianTarget);
         } else {
-          Buffer.pushData(Buff.data(), BitOffset, BitWidth, BigEndianTarget);
+          Buffer.pushData(Buff.data(), BitWidth, BigEndianTarget);
         }
         return true;
       });


        


More information about the cfe-commits mailing list