Objective-C modern translator. Fix declaration of

__NSConstantStringImpl's length field to accomodate
window's 64bit LLP64 mode. // rdar://16489050

llvm-svn: 205353
This commit is contained in:
Fariborz Jahanian 2014-04-01 19:32:35 +00:00
parent 9e0baa6d3a
commit 287e79a263
1 changed files with 4 additions and 0 deletions

View File

@ -6108,7 +6108,11 @@ void RewriteModernObjC::Initialize(ASTContext &context) {
Preamble += " int *isa;\n";
Preamble += " int flags;\n";
Preamble += " char *str;\n";
Preamble += "#if __LLP64__\n";
Preamble += " long long length;\n";
Preamble += "#else\n";
Preamble += " long length;\n";
Preamble += "#endif\n";
Preamble += "};\n";
Preamble += "#ifdef CF_EXPORT_CONSTANT_STRING\n";
Preamble += "extern \"C\" __declspec(dllexport) int __CFConstantStringClassReference[];\n";