From 271474e32f38cc5bd735c1006e499996cbc6e2d1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 19 Apr 2009 06:59:18 +0000 Subject: 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 --- lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenModule.cpp') 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()) { -- cgit v1.2.3-70-g09d2