[PATCH] D81857: Fix ConstantAggregateBuilderBase::getRelativeOffset
Arnold Schwaighofer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 15 12:41:20 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4a8120ca9fb9: Fix ConstantAggregateBuilderBase::getRelativeOffset (authored by aschwaighofer).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81857/new/
https://reviews.llvm.org/D81857
Files:
clang/lib/CodeGen/ConstantInitBuilder.cpp
Index: clang/lib/CodeGen/ConstantInitBuilder.cpp
===================================================================
--- clang/lib/CodeGen/ConstantInitBuilder.cpp
+++ clang/lib/CodeGen/ConstantInitBuilder.cpp
@@ -129,7 +129,7 @@
ConstantAggregateBuilderBase::getRelativeOffset(llvm::IntegerType *offsetType,
llvm::Constant *target) {
return getRelativeOffsetToPosition(offsetType, target,
- Builder.SelfReferences.size());
+ Builder.Buffer.size() - Begin);
}
llvm::Constant *ConstantAggregateBuilderBase::getRelativeOffsetToPosition(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81857.270831.patch
Type: text/x-patch
Size: 663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200615/ea0297cd/attachment.bin>
More information about the cfe-commits
mailing list