aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-10-13 06:47:08 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-10-13 06:47:08 +0000
commit6e4bdfc229cbbe5ba549e45f55bda4bb989b159d (patch)
tree1f9c365c9866902dd05c4f7c8639e23f09966b42 /lib/CodeGen
parentc411c4be1e64f9d6bcec230222bb19f8e037c491 (diff)
downloadexternal_llvm-6e4bdfc229cbbe5ba549e45f55bda4bb989b159d.zip
external_llvm-6e4bdfc229cbbe5ba549e45f55bda4bb989b159d.tar.gz
external_llvm-6e4bdfc229cbbe5ba549e45f55bda4bb989b159d.tar.bz2
Fix a -Asserts warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 811bf65..0da888e 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -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 @@ 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