Author: Timm Baeder Date: 2024-12-11T16:14:19+01:00 New Revision: d416cae180a5c7e7325c0b55818056e328633a61
URL: https://github.com/llvm/llvm-project/commit/d416cae180a5c7e7325c0b55818056e328633a61 DIFF: https://github.com/llvm/llvm-project/commit/d416cae180a5c7e7325c0b55818056e328633a61.diff LOG: [clang][bytecode][NFC] Use Pointer::pointToSameBlock (#119552) block() requires the pointer to be a block pointer. Added: Modified: clang/lib/AST/ByteCode/InterpBuiltin.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/ByteCode/InterpBuiltin.cpp b/clang/lib/AST/ByteCode/InterpBuiltin.cpp index 4fe17ec01906e9..57175da32b31cd 100644 --- a/clang/lib/AST/ByteCode/InterpBuiltin.cpp +++ b/clang/lib/AST/ByteCode/InterpBuiltin.cpp @@ -1876,7 +1876,7 @@ static bool interp__builtin_memcpy(InterpState &S, CodePtr OpPC, } // Check for overlapping memory regions. - if (!Move && SrcPtr.block() == DestPtr.block()) { + if (!Move && Pointer::pointToSameBlock(SrcPtr, DestPtr)) { unsigned SrcIndex = SrcPtr.getIndex() * SrcPtr.elemSize(); unsigned DstIndex = DestPtr.getIndex() * DestPtr.elemSize(); unsigned N = Size.getZExtValue(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits