[llvm-commits] [llvm] r140281 - /llvm/trunk/lib/Analysis/DbgInfoPrinter.cpp
Galina Kistanova
gkistanova at gmail.com
Wed Sep 21 16:34:23 PDT 2011
Author: gkistanova
Date: Wed Sep 21 18:34:23 2011
New Revision: 140281
URL: http://llvm.org/viewvc/llvm-project?rev=140281&view=rev
Log:
Fix for DbgInfoPrinter.cpp:174:12: warning: ‘LineNo’ may be used uninitialized in this function.
Modified:
llvm/trunk/lib/Analysis/DbgInfoPrinter.cpp
Modified: llvm/trunk/lib/Analysis/DbgInfoPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/DbgInfoPrinter.cpp?rev=140281&r1=140280&r2=140281&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/DbgInfoPrinter.cpp (original)
+++ llvm/trunk/lib/Analysis/DbgInfoPrinter.cpp Wed Sep 21 18:34:23 2011
@@ -171,7 +171,7 @@
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;
More information about the llvm-commits
mailing list