[llvm-commits] [llvm] r83950 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Daniel Dunbar
daniel at zuster.org
Mon Oct 12 23:47:08 PDT 2009
Author: ddunbar
Date: Tue Oct 13 01:47:08 2009
New Revision: 83950
URL: http://llvm.org/viewvc/llvm-project?rev=83950&view=rev
Log:
Fix a -Asserts warning.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=83950&r1=83949&r2=83950&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue Oct 13 01:47:08 2009
@@ -23,9 +23,10 @@
#include "llvm/Target/TargetLoweringObjectFile.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/ADT/StringExtras.h"
+#include "llvm/Support/Debug.h"
+#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Mangler.h"
#include "llvm/Support/Timer.h"
-#include "llvm/Support/Debug.h"
#include "llvm/System/Path.h"
using namespace llvm;
@@ -1909,7 +1910,7 @@
if (D.isLexicalBlock())
return getDISubprogram(DILexicalBlock(N).getContext().getNode());
- assert (0 && "Unexpected Descriptor!");
+ llvm_unreachable("Unexpected Descriptor!");
}
/// BeginFunction - Gather pre-function debug information. Assumes being
More information about the llvm-commits
mailing list