[clang] [clang][bytecode] Only allow lossless ptr-to-int casts (PR #111669)

2024-10-09 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/111669 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Only allow lossless ptr-to-int casts (PR #111669)

2024-10-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Only allow those casts if the bitwidth of the two types match. --- Full diff: https://github.com/llvm/llvm-project/pull/111669.diff 3 Files Affected: - (modified) clang/lib/AST/ByteCode/Interp.cpp (+41) -

[clang] [clang][bytecode] Only allow lossless ptr-to-int casts (PR #111669)

2024-10-09 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/111669 Only allow those casts if the bitwidth of the two types match. >From 6d68260682f723fa7a010e2fd381da32316ed5e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 9 Oct 2024 14:03:39 +0200 S