[PATCH] D54166: [AST] Store the string data in StringLiteral in a trailing array of chars
Bruno Ricci via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 14 07:02:14 PST 2018
riccibruno marked 2 inline comments as done.
riccibruno added inline comments.
================
Comment at: include/clang/AST/Expr.h:1615
+ }
+
+ /// Build a string literal.
----------------
Note that the trailing array of chars is aligned to 4 bytes
since it is after the array of `SourceLocation`.
Therefore I believe that the `uint16_t *` and `uint32_t *`
point to properly aligned memory. However I can add an
assertion here if needed.
Repository:
rC Clang
https://reviews.llvm.org/D54166
More information about the cfe-commits
mailing list