Fix a -Asserts warning.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 13 Oct 2009 06:47:08 +0000 (06:47 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 13 Oct 2009 06:47:08 +0000 (06:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83950 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 811bf65d9d02ea1c556ebd6c428aaf63548b06ba..0da888e0f32b8f50bfd58a8ad0f2975ed74bbda3 100644 (file)
 #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 @@ static DISubprogram getDISubprogram(MDNode *N) {
   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