aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2010-01-13 03:18:30 +0000
committerVictor Hernandez <vhernandez@apple.com>2010-01-13 03:18:30 +0000
commit3047384a0f584c06ff203f261d344cab3871e9dc (patch)
tree6651d86ff9053ee874d59944682e1d753506c409 /lib/Bitcode
parent262a96edb436543227b9b5e49f95a082e1c73b5f (diff)
downloadexternal_llvm-3047384a0f584c06ff203f261d344cab3871e9dc.zip
external_llvm-3047384a0f584c06ff203f261d344cab3871e9dc.tar.gz
external_llvm-3047384a0f584c06ff203f261d344cab3871e9dc.tar.bz2
Revert 93270 pending investigation of how stray non-constant values end up in ValueEnumerator's ValueList during WriteConstants()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r--lib/Bitcode/Writer/BitcodeWriter.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp
index fd1bade..26c922a 100644
--- a/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -688,11 +688,6 @@ static void WriteConstants(unsigned FirstVal, unsigned LastVal,
Record.clear();
continue;
}
-
- // Ignore all values in ValueList except for Constants.
- if (V && (isa<Instruction>(V) || isa<Argument>(V)))
- continue;
-
const Constant *C = cast<Constant>(V);
unsigned Code = -1U;
unsigned AbbrevToUse = 0;