]> granicus.if.org Git - clang/commitdiff
silence a warning, I need to talk to Devang about this code.
authorChris Lattner <sabre@nondot.org>
Sun, 19 Apr 2009 06:50:29 +0000 (06:50 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 19 Apr 2009 06:50:29 +0000 (06:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69517 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index e7a4a45573ca32ffa4cd8c644ffa0c02a12a8490..1c6043b7d647ad70dba10c3b892fab2ecd4ac199 100644 (file)
@@ -52,7 +52,7 @@ llvm::DICompileUnit CGDebugInfo::getOrCreateCompileUnit(SourceLocation Loc) {
   // Get source file information.
   const char *FileName =  "<unknown>";
   SourceManager &SM = M->getContext().getSourceManager();
-  unsigned FID;
+  unsigned FID = 0;
   if (Loc.isValid()) {
     PresumedLoc PLoc = SM.getPresumedLoc(Loc);
     FileName = PLoc.getFilename();