[clang] [clang][bytecode][NFC] Remove some dead code (PR #146287)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 29 12:21:37 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Timm Baeder (tbaederr)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/146287.diff


1 Files Affected:

- (modified) clang/lib/AST/ByteCode/FunctionPointer.cpp (-2) 


``````````diff
diff --git a/clang/lib/AST/ByteCode/FunctionPointer.cpp b/clang/lib/AST/ByteCode/FunctionPointer.cpp
index 4ab7af170efe4..2488626697284 100644
--- a/clang/lib/AST/ByteCode/FunctionPointer.cpp
+++ b/clang/lib/AST/ByteCode/FunctionPointer.cpp
@@ -27,8 +27,6 @@ void FunctionPointer::print(llvm::raw_ostream &OS) const {
   OS << "FnPtr(";
   if (Func)
     OS << Func->getName();
-  else if (Func)
-    OS << reinterpret_cast<uintptr_t>(Func);
   else
     OS << "nullptr";
   OS << ")";

``````````

</details>


https://github.com/llvm/llvm-project/pull/146287


More information about the cfe-commits mailing list