Merge "Use clang-r412851"
This commit is contained in:
@@ -15,5 +15,5 @@
|
||||
# limitations under the License.
|
||||
|
||||
export LLVM_BUILD_HOST_TOOLS=true
|
||||
export LLVM_PREBUILTS_VERSION=clang-r407598b
|
||||
export LLVM_RELEASE_VERSION=12.0.2
|
||||
export LLVM_PREBUILTS_VERSION=clang-r412851
|
||||
export LLVM_RELEASE_VERSION=12.0.3
|
||||
|
||||
@@ -294,10 +294,9 @@ bool ABIWrapper::CreateBasicNamedAndTypedDecl(
|
||||
// Temporary hack: Skip the auto types, incomplete types and dependent types.
|
||||
if (type_class != clang::Type::Auto && !base_type->isIncompleteType() &&
|
||||
!base_type->isDependentType()) {
|
||||
std::pair<clang::CharUnits, clang::CharUnits> size_and_alignment =
|
||||
ast_contextp_->getTypeInfoInChars(canonical_type);
|
||||
typep->SetSize(size_and_alignment.first.getQuantity());
|
||||
typep->SetAlignment(size_and_alignment.second.getQuantity());
|
||||
auto type_info_chars = ast_contextp_->getTypeInfoInChars(canonical_type);
|
||||
typep->SetSize(type_info_chars.Width.getQuantity());
|
||||
typep->SetAlignment(type_info_chars.Align.getQuantity());
|
||||
}
|
||||
|
||||
std::string human_name = QualTypeToString(canonical_type);
|
||||
|
||||
Reference in New Issue
Block a user