aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DbgInfoPrinter.cpp
diff options
context:
space:
mode:
authorGalina Kistanova <gkistanova@gmail.com>2011-09-21 23:34:23 +0000
committerGalina Kistanova <gkistanova@gmail.com>2011-09-21 23:34:23 +0000
commitef01f32d07f4c7ecd9d116be53c5f3de3138f1ae (patch)
tree36f92d6dacfd6878fdf3d935f42f9fef9009a3a8 /lib/Analysis/DbgInfoPrinter.cpp
parentcccfd194ecf8e1c6fb203ec3f96aca8cfe9e0484 (diff)
Fix for DbgInfoPrinter.cpp:174:12: warning: ‘LineNo’ may be used uninitialized in this function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DbgInfoPrinter.cpp')
-rw-r--r--lib/Analysis/DbgInfoPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/DbgInfoPrinter.cpp b/lib/Analysis/DbgInfoPrinter.cpp
index b23c3514d0..cd832abeba 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;