diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-10 06:27:44 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-10 06:27:44 +0000 |
commit | ec5c2a7646e4e23a4bed77443415938b140d7aa7 (patch) | |
tree | 4ff6b4489e48c0c3dc8ad803c5c80d4ecbfcc204 /lib/CodeGen/CodeGenModule.cpp | |
parent | d1a0b6d3dfb208f638d3d750b588d9c0daa49289 (diff) |
Bug fix, inline string literals were getting an extra '\0'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index ebe75dd4a2..2d7e41c334 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/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, |