summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-21 21:18:37 +0000
committerDan Gohman <gohman@apple.com>2010-07-21 21:18:37 +0000
commit47dc8fd67ae7b278cfea3c83e93da571fe795792 (patch)
tree7086fb151b944e01e8d0b3e031a834a2610bfe29 /llvm/lib
parent784e062b2a0fdbb2675ef227802063a32c62504e (diff)
downloadbcm5719-llvm-47dc8fd67ae7b278cfea3c83e93da571fe795792.tar.gz
bcm5719-llvm-47dc8fd67ae7b278cfea3c83e93da571fe795792.zip
Add some debug output to help diagnose PR7689.
llvm-svn: 109036
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 64c2dfaee82..f594e0ffe4e 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -897,6 +897,9 @@ static void WriteConstants(unsigned FirstVal, unsigned LastVal,
Record.push_back(VE.getValueID(BA->getFunction()));
Record.push_back(VE.getGlobalBasicBlockID(BA->getBasicBlock()));
} else {
+#ifndef NDEBUG
+ C->dump();
+#endif
llvm_unreachable("Unknown constant!");
}
Stream.EmitRecord(Code, Record, AbbrevToUse);
OpenPOWER on IntegriCloud