Don't zero terminate the bitmap twice.

llvm-svn: 149377
This commit is contained in:
Benjamin Kramer 2012-01-31 10:30:46 +00:00
parent 4ce6e6ef87
commit e76b42b298
1 changed files with 1 additions and 1 deletions

View File

@ -4040,7 +4040,7 @@ llvm::Constant *CGObjCCommonMac::BuildIvarLayoutBitmap(std::string &BitMap) {
llvm::GlobalVariable * Entry =
CreateMetadataVar("\01L_OBJC_CLASS_NAME_",
llvm::ConstantDataArray::getString(VMContext, BitMap),
llvm::ConstantDataArray::getString(VMContext, BitMap,false),
((ObjCABI == 2) ?
"__TEXT,__objc_classname,cstring_literals" :
"__TEXT,__cstring,cstring_literals"),