[all-commits] [llvm/llvm-project] d33c7d: [CodeGenObjC] Fix a crash when attempting to copy ...

Erik Pilkington via All-commits all-commits at lists.llvm.org
Mon Apr 6 13:04:20 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d33c7de8e11f2727ef5e325d931ae94af8619bf9
      https://github.com/llvm/llvm-project/commit/d33c7de8e11f2727ef5e325d931ae94af8619bf9
  Author: Erik Pilkington <erik.pilkington at gmail.com>
  Date:   2020-04-06 (Mon, 06 Apr 2020)

  Changed paths:
    M clang/include/clang/AST/NonTrivialTypeVisitor.h
    M clang/lib/CodeGen/CGNonTrivialStruct.cpp
    M clang/test/CodeGenObjC/strong-in-c-struct.m

  Log Message:
  -----------
  [CodeGenObjC] Fix a crash when attempting to copy a zero-sized bit-field in a non-trivial C struct

Zero sized bit-fields aren't included in the CGRecordLayout, so we shouldn't be
calling EmitLValueForField for them. rdar://60695105

Differential revision: https://reviews.llvm.org/D76782




More information about the All-commits mailing list