[PATCH] D99590: [Clang] Do not use memcpy for scalable struct copy.

2021-03-31 Thread Hsiangkai Wang via Phabricator via cfe-commits
HsiangKai updated this revision to Diff 334579. HsiangKai added a comment. Address comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99590/new/ https://reviews.llvm.org/D99590 Files: clang/include/clang/AST/Type.h clang/lib/AST/Type.cpp

[PATCH] D99590: [Clang] Do not use memcpy for scalable struct copy.

2021-03-31 Thread Fraser Cormack via Phabricator via cfe-commits
frasercrmck added inline comments. Comment at: clang/include/clang/AST/Type.h:4627 + /// Recursively check all fields in the record for sizeless. If any field + /// is sizeless type, return true. Otherwise, return false. + bool hasSizelessFields() const; nit: