Bug fix, inline string literals were getting an extra '\0'.

llvm-svn: 54608
This commit is contained in:
Daniel Dunbar
2008-08-10 06:27:44 +00:00
parent 7ab824e43d
commit 9a8d07321a

View File

@@ -907,7 +907,7 @@ static llvm::Constant *GenerateStringLiteral(const std::string &str,
bool constant,
CodeGenModule &CGM) {
// Create Constant for this string literal
llvm::Constant *C=llvm::ConstantArray::get(str);
llvm::Constant *C = llvm::ConstantArray::get(str, false);
// Create a global variable for this string
C = new llvm::GlobalVariable(C->getType(), constant,