[llvm-commits] [llvm-gcc-4.2] r62874 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Fri Jan 23 12:47:14 PST 2009
Author: dpatel
Date: Fri Jan 23 14:47:13 2009
New Revision: 62874
URL: http://llvm.org/viewvc/llvm-project?rev=62874&view=rev
Log:
Initialize location info.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=62874&r1=62873&r2=62874&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Fri Jan 23 14:47:13 2009
@@ -496,8 +496,9 @@
llvm::DIArray EltArray =
DebugFactory.GetOrCreateArray(&Elements[0], Elements.size());
- expanded_location Loc;
- std::string Filename, Directory;
+ expanded_location Loc = { NULL, 0 };
+ std::string Filename = "";
+ std::string Directory= "";
if (TYPE_SIZE(type)) {
// Incomplete enums do not have any location info.
Loc = GetNodeLocation(TREE_CHAIN(type), false);
More information about the llvm-commits
mailing list