[cfe-commits] r69519 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Chris Lattner sabre at nondot.org
Sat Apr 18 23:59:18 PDT 2009


Author: lattner
Date: Sun Apr 19 01:59:18 2009
New Revision: 69519

URL: http://llvm.org/viewvc/llvm-project?rev=69519&view=rev
Log:
silence a warning, it isn't clear what the right answer is here,
will talk to steve.

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=69519&r1=69518&r2=69519&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Sun Apr 19 01:59:18 2009
@@ -1062,7 +1062,7 @@
 llvm::Constant *CodeGenModule::
 GetAddrOfConstantCFString(const StringLiteral *Literal) {
   std::string str;
-  unsigned StringLength;
+  unsigned StringLength = 0;
   
   bool isUTF16 = false;
   if (Literal->containsNonAsciiOrNull()) {





More information about the cfe-commits mailing list