From ef01f32d07f4c7ecd9d116be53c5f3de3138f1ae Mon Sep 17 00:00:00 2001 From: Galina Kistanova Date: Wed, 21 Sep 2011 23:34:23 +0000 Subject: =?UTF-8?q?Fix=20for=20DbgInfoPrinter.cpp:174:12:=20warning:=20?= =?UTF-8?q?=E2=80=98LineNo=E2=80=99=20may=20be=20used=20uninitialized=20in?= =?UTF-8?q?=20this=20function.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(-) (limited to 'lib/Analysis/DbgInfoPrinter.cpp') diff --git a/lib/Analysis/DbgInfoPrinter.cpp b/lib/Analysis/DbgInfoPrinter.cpp index b23c351..cd832ab 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; -- cgit v1.1