From: Chris Lattner Date: Sun, 19 Apr 2009 06:59:18 +0000 (+0000) Subject: silence a warning, it isn't clear what the right answer is here, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=271474e32f38cc5bd735c1006e499996cbc6e2d1;p=clang silence a warning, it isn't clear what the right answer is here, will talk to steve. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69519 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index df62f0e918..a517d81545 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -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()) {