diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-04-16 13:21:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-16 13:21:25 +0200 |
commit | 2d63faead4e6339e679ab62113f47112d67a5b06 (patch) | |
tree | aecc1c192d59922469337f1ef7b64b1b0fc8d210 /clang/lib/AST/ByteCode/Pointer.cpp | |
parent | 1e61b374ba3ba2891dc1abda732b0b9263216785 (diff) | |
download | llvm-2d63faead4e6339e679ab62113f47112d67a5b06.zip llvm-2d63faead4e6339e679ab62113f47112d67a5b06.tar.gz llvm-2d63faead4e6339e679ab62113f47112d67a5b06.tar.bz2 |
[clang][bytecode][NFC] Remove PT_FnPtr (#135947)
We don't need this anymore since we don't return it from classify()
anymore.
Diffstat (limited to 'clang/lib/AST/ByteCode/Pointer.cpp')
-rw-r--r-- | clang/lib/AST/ByteCode/Pointer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/ByteCode/Pointer.cpp b/clang/lib/AST/ByteCode/Pointer.cpp index c09d322..c43c0a0 100644 --- a/clang/lib/AST/ByteCode/Pointer.cpp +++ b/clang/lib/AST/ByteCode/Pointer.cpp @@ -155,10 +155,10 @@ APValue Pointer::toAPValue(const ASTContext &ASTCtx) const { if (isFunctionPointer()) { const FunctionPointer &FP = asFunctionPointer(); if (const FunctionDecl *FD = FP.getFunction()->getDecl()) - return APValue(FD, CharUnits::fromQuantity(FP.getOffset() + Offset), {}, + return APValue(FD, CharUnits::fromQuantity(Offset), {}, /*OnePastTheEnd=*/false, /*IsNull=*/false); - return APValue(FP.getFunction()->getExpr(), - CharUnits::fromQuantity(FP.getOffset() + Offset), {}, + return APValue(FP.getFunction()->getExpr(), CharUnits::fromQuantity(Offset), + {}, /*OnePastTheEnd=*/false, /*IsNull=*/false); } |