]> granicus.if.org Git - clang/commitdiff
silence a warning, it isn't clear what the right answer is here,
authorChris Lattner <sabre@nondot.org>
Sun, 19 Apr 2009 06:59:18 +0000 (06:59 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 19 Apr 2009 06:59:18 +0000 (06:59 +0000)
will talk to steve.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69519 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp

index df62f0e918b28727f825e30a6fbb3fa2937247d6..a517d81545e889983dbe03ad32e66801e995f73e 100644 (file)
@@ -1062,7 +1062,7 @@ static void appendFieldAndPadding(CodeGenModule &CGM,
 llvm::Constant *CodeGenModule::
 GetAddrOfConstantCFString(const StringLiteral *Literal) {
   std::string str;
-  unsigned StringLength;
+  unsigned StringLength = 0;
   
   bool isUTF16 = false;
   if (Literal->containsNonAsciiOrNull()) {