[PATCH] D58729: Emit boxed expression as a compile-time constant if the expression inside the parentheses is a string literal
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 5 18:30:09 PST 2019
ahatanak updated this revision to Diff 189436.
ahatanak marked 2 inline comments as done.
ahatanak added a comment.
If the string literal used for the boxed expression isn't a valid UTF-8 string, don't emit a compile-time constant.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58729/new/
https://reviews.llvm.org/D58729
Files:
include/clang/AST/ExprObjC.h
lib/AST/ExprConstant.cpp
lib/CodeGen/CGExprConstant.cpp
lib/CodeGen/CGObjC.cpp
lib/Sema/SemaExprObjC.cpp
test/CodeGenObjC/boxing.m
test/SemaObjC/boxing-illegal.m
test/SemaObjC/objc-literal-sig.m
test/SemaObjC/transfer-boxed-string-nullability.m
test/SemaObjCXX/literals.mm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58729.189436.patch
Type: text/x-patch
Size: 12778 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190306/feeadb70/attachment-0001.bin>
More information about the cfe-commits
mailing list