[clang] [clang][bytecode][NFC] Remove some dead code (PR #146287)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 29 12:21:02 PDT 2025
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/146287
None
>From 7812277876bfa5ac75c110d582dea98924339858 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Sun, 29 Jun 2025 21:19:22 +0200
Subject: [PATCH] [clang][bytecode][NFC] Remove some dead code
---
clang/lib/AST/ByteCode/FunctionPointer.cpp | 2 --
1 file changed, 2 deletions(-)
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 << ")";
More information about the cfe-commits
mailing list