[clang] [clang]bytecode] Add degenerate pointers (PR #160086)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 24 14:10:50 PDT 2025
================
@@ -145,7 +153,11 @@ class Pointer {
return Int.Value + (Offset * elemSize());
if (isFunctionPointer())
return Fn.getIntegerRepresentation() + Offset;
- return reinterpret_cast<uint64_t>(BS.Pointee) + Offset;
+ if (isDegenPointer())
----------------
shafik wrote:
I am wondering why the degenerate case is not last, I would think that would be the least common result.
https://github.com/llvm/llvm-project/pull/160086
More information about the cfe-commits
mailing list