diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-21 21:18:37 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-21 21:18:37 +0000 |
commit | 47dc8fd67ae7b278cfea3c83e93da571fe795792 (patch) | |
tree | 7086fb151b944e01e8d0b3e031a834a2610bfe29 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 784e062b2a0fdbb2675ef227802063a32c62504e (diff) | |
download | llvm-47dc8fd67ae7b278cfea3c83e93da571fe795792.zip llvm-47dc8fd67ae7b278cfea3c83e93da571fe795792.tar.gz llvm-47dc8fd67ae7b278cfea3c83e93da571fe795792.tar.bz2 |
Add some debug output to help diagnose PR7689.
llvm-svn: 109036
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 64c2dfa..f594e0f 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); |