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

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 4 06:17:39 PST 2024


https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/114801

None

>From 503dd989be6406fafb3ebcf4ed99e8c5d81c11d0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Mon, 4 Nov 2024 15:16:20 +0100
Subject: [PATCH] [clang][bytecode][NFC] Remove unused parameter from
 pushData()

---
 clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp b/clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp
index e458613bc1d08d..da97b9f91ffcef 100644
--- a/clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp
+++ b/clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp
@@ -109,8 +109,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;
 
@@ -347,9 +346,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