summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
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
commit013a91ddfeadf0b79ff32dd7a700ae8f3e39f3e0 (patch)
treebff56fa6705ce5e0dc7bca11783b724c933bc3f5 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent3d756f1a9e0502009602a93b2c21a9c623975c41 (diff)
downloadbcm5719-llvm-013a91ddfeadf0b79ff32dd7a700ae8f3e39f3e0.tar.gz
bcm5719-llvm-013a91ddfeadf0b79ff32dd7a700ae8f3e39f3e0.zip
Revert 93270 pending investigation of how stray non-constant values end up in ValueEnumerator's ValueList during WriteConstants()
llvm-svn: 93289
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index fd1bade8f15..26c922a7810 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud