mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-29 21:24:04 +00:00
Fix ConstantAggregateBuilderBase::getRelativeOffset
Summary: If a record has a mix of relative pointers and other fields they wouldn't necessarily be the same. Fallout from D77592. rdar://64309883 Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D81857
This commit is contained in:
parent
3495b884de
commit
4a8120ca9f
@ -129,7 +129,7 @@ llvm::Constant *
|
||||
ConstantAggregateBuilderBase::getRelativeOffset(llvm::IntegerType *offsetType,
|
||||
llvm::Constant *target) {
|
||||
return getRelativeOffsetToPosition(offsetType, target,
|
||||
Builder.SelfReferences.size());
|
||||
Builder.Buffer.size() - Begin);
|
||||
}
|
||||
|
||||
llvm::Constant *ConstantAggregateBuilderBase::getRelativeOffsetToPosition(
|
||||
|
Loading…
x
Reference in New Issue
Block a user