summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-10 06:27:44 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-10 06:27:44 +0000
commit9a8d07321ac822c0303073cc8bb4a44b076dda2d (patch)
treea427bb75324b89aa8fa1ae2a1d604ce61c5a659c /clang/lib/CodeGen/CodeGenModule.cpp
parent7ab824e43d2fe5400617515de351a48390329bf0 (diff)
downloadbcm5719-llvm-9a8d07321ac822c0303073cc8bb4a44b076dda2d.tar.gz
bcm5719-llvm-9a8d07321ac822c0303073cc8bb4a44b076dda2d.zip
Bug fix, inline string literals were getting an extra '\0'.
llvm-svn: 54608
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index ebe75dd4a2b..2d7e41c334c 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -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,
OpenPOWER on IntegriCloud