aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode
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
commitf9467dc3a6c3f7c6eda069c315db2fae75de2f7d (patch)
tree8cf45ad6f126f7ddcd4b7b5fb6ba635c2b9572a4 /lib/Bitcode
parent16e3433d3e4ef66be8abe29dc46f6a6d320801c5 (diff)
downloadexternal_llvm-f9467dc3a6c3f7c6eda069c315db2fae75de2f7d.zip
external_llvm-f9467dc3a6c3f7c6eda069c315db2fae75de2f7d.tar.gz
external_llvm-f9467dc3a6c3f7c6eda069c315db2fae75de2f7d.tar.bz2
Add some debug output to help diagnose PR7689.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r--lib/Bitcode/Writer/BitcodeWriter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp
index 64c2dfa..f594e0f 100644
--- a/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/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);