[clang] [clang][bytecode][NFC] Remove FunctionPointer from PrimTypeVariant (PR #215465)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 10 23:18:06 PDT 2026
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/215465
FunctionPointers are always regular Pointers these days.
>From 8d71a4b054a3cd01cdb57295415781348970c18c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Tue, 11 Aug 2026 08:17:07 +0200
Subject: [PATCH] [clang][bytecode][NFC] Remove FunctionPointer from
PrimTypeVariant
FunctionPointers are always regular Pointers these days.
---
clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp b/clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp
index f136301c02912..2529bfc6c1cbd 100644
--- a/clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp
+++ b/clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp
@@ -511,11 +511,10 @@ bool clang::interp::DoBitCastPtr(InterpState &S, CodePtr OpPC,
}
using PrimTypeVariant =
- std::variant<Pointer, FunctionPointer, MemberPointer, FixedPoint,
- Char<false>, Char<true>, Integral<16, false>,
- Integral<16, true>, Integral<32, false>, Integral<32, true>,
- Integral<64, false>, Integral<64, true>, IntegralAP<true>,
- IntegralAP<false>, Boolean, Floating>;
+ std::variant<Pointer, MemberPointer, FixedPoint, Char<false>, Char<true>,
+ Integral<16, false>, Integral<16, true>, Integral<32, false>,
+ Integral<32, true>, Integral<64, false>, Integral<64, true>,
+ IntegralAP<true>, IntegralAP<false>, Boolean, Floating>;
// NB: This implementation isn't exactly ideal, but:
// 1) We can't just do a bitcast here since we need to be able to
More information about the cfe-commits
mailing list