From ef01f32d07f4c7ecd9d116be53c5f3de3138f1ae Mon Sep 17 00:00:00 2001 From: Galina Kistanova Date: Wed, 21 Sep 2011 23:34:23 +0000 Subject: [PATCH] =?utf8?q?Fix=20for=20DbgInfoPrinter.cpp:174:12:=20warning?= =?utf8?q?:=20=E2=80=98LineNo=E2=80=99=20may=20be=20used=20uninitialized?= =?utf8?q?=20in=20this=20function.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140281 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DbgInfoPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/DbgInfoPrinter.cpp b/lib/Analysis/DbgInfoPrinter.cpp index b23c3514d0b..cd832abeba5 100644 --- a/lib/Analysis/DbgInfoPrinter.cpp +++ b/lib/Analysis/DbgInfoPrinter.cpp @@ -171,7 +171,7 @@ static bool getLocationInfo(const Value *V, std::string &DisplayName, void PrintDbgInfo::printVariableDeclaration(const Value *V) { std::string DisplayName, File, Directory, Type; - unsigned LineNo; + unsigned LineNo = 0; if (!getLocationInfo(V, DisplayName, Type, LineNo, File, Directory)) return; -- 2.34.1