diff options
| author | Sean Callanan <scallanan@apple.com> | 2016-12-01 17:46:51 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2016-12-01 17:46:51 +0000 |
| commit | cd1eb72bab8539d16d8b5ddb7415d1292d0ce324 (patch) | |
| tree | 96e9d33a09e26f85c2d8f7a773f0724949ae8210 /llvm/lib/CodeGen/MachineBranchProbabilityInfo.cpp | |
| parent | 93f12aff5519479efc3e3d1114ff18579d376ff6 (diff) | |
| download | bcm5719-llvm-cd1eb72bab8539d16d8b5ddb7415d1292d0ce324.tar.gz bcm5719-llvm-cd1eb72bab8539d16d8b5ddb7415d1292d0ce324.zip | |
Handle UTF-16 and UTF-32 constant CFStrings
We have a longstanding issue where the expression parser does not handle wide CFStrings (e.g., @"凸凹") correctly, producing the useless error message
Internal error [IRForTarget]: An Objective-C constant string's string initializer is not an array
error: warning: expression result unused
error: The expression could not be prepared to run in the target
This is just a side effect of the fact that we don't handle wide string constants when converting these to CFStringCreateWithBytes. That function takes the string's encoding as an argument, so I made it work and added a testcase.
https://reviews.llvm.org/D27291
<rdar://problem/13190557>
llvm-svn: 288386
Diffstat (limited to 'llvm/lib/CodeGen/MachineBranchProbabilityInfo.cpp')
0 files changed, 0 insertions, 0 deletions

