[cfe-commits] r54608 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Daniel Dunbar
daniel at zuster.org
Sat Aug 9 23:27:45 PDT 2008
Author: ddunbar
Date: Sun Aug 10 01:27:44 2008
New Revision: 54608
URL: http://llvm.org/viewvc/llvm-project?rev=54608&view=rev
Log:
Bug fix, inline string literals were getting an extra '\0'.
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=54608&r1=54607&r2=54608&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Sun Aug 10 01:27:44 2008
@@ -907,7 +907,7 @@
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,
More information about the cfe-commits
mailing list