diff options
author | Jordan Rose <jordan_rose@apple.com> | 2012-06-04 23:52:23 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2012-06-04 23:52:23 +0000 |
commit | 97c6f2b9e5b3abee9256eebd476d49f83efa1955 (patch) | |
tree | 2b7c1c17d6037f88a579c31ee0bbada35a056dd4 /llvm/lib/Transforms/Vectorize/BBVectorize.cpp | |
parent | d3761a7e1099f654289cbab3f25e5bbb50df4f3f (diff) | |
download | bcm5719-llvm-97c6f2b9e5b3abee9256eebd476d49f83efa1955.tar.gz bcm5719-llvm-97c6f2b9e5b3abee9256eebd476d49f83efa1955.zip |
Teach format string checking about compile-time CFString constants.
Within the guts of CheckFormatHandler, the IsObjCLiteral flag was being used in
two ways: to see if null bytes were allowed, and to see if the '%@' specifier
is allowed.* The former usage has been changed to an explicit test and the
latter pushed down to CheckPrintfHandler and renamed ObjCContext, since it
applies to CFStrings as well.
* This also changes how wide chars are interpreted; in OS X Foundation, the
wide character type is 'unichar', a typedef for short, rather than wchar_t.
llvm-svn: 157968
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/BBVectorize.cpp')
0 files changed, 0 insertions, 0 deletions