For scalable struct types, we do not know the exact size of the struct. Do not use memcpy for struct copy. We use extractvalue and insertvalue for the purpose.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/AST/Type.h | ||
---|---|---|
4627 | nit: missing "a": is a sizeless type | |
clang/lib/CodeGen/CGExprAgg.cpp | ||
2085 | Are SrcVec and DestVec the right names here? It took me a while to realise they're not vector types. | |
2086 | We could define Vec inside the loop? | |
2088 | I don't know if getContext().getASTRecordLayout(Record).getFieldCount() is expensive to compute, but this may be recomputing it on every iteration. |
nit: missing "a": is a sizeless type