[all-commits] [llvm/llvm-project] bcaa80: [Clang] Fix BZ47169, loader_uninitialized on incom...

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Wed Aug 19 10:12:15 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bcaa806a4747595116b538e8b75b12966e6607f6
      https://github.com/llvm/llvm-project/commit/bcaa806a4747595116b538e8b75b12966e6607f6
  Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
  Date:   2020-08-19 (Wed, 19 Aug 2020)

  Changed paths:
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/CodeGenCXX/attr-loader-uninitialized.cpp
    M clang/test/Sema/attr-loader-uninitialized.c
    M clang/test/Sema/attr-loader-uninitialized.cpp

  Log Message:
  -----------
  [Clang] Fix BZ47169, loader_uninitialized on incomplete types

[Clang] Fix BZ47169, loader_uninitialized on incomplete types

Reported by @erichkeane. Fix proposed by @erichkeane works, tests included.
Bug introduced in D74361. Crash was on querying a CXXRecordDecl for
hasTrivialDefaultConstructor on an incomplete type. Fixed by calling
RequireCompleteType in the right place.

Reviewed By: erichkeane

Differential Revision: https://reviews.llvm.org/D85990




More information about the All-commits mailing list