HomePhabricator

Fix ConstantAggregateBuilderBase::getRelativeOffset

Authored by aschwaighofer on Jun 15 2020, 10:28 AM.

Description

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

Details