Revert 93270 pending investigation of how stray non-constant values end up in ValueEn...
authorVictor Hernandez <vhernandez@apple.com>
Wed, 13 Jan 2010 03:18:30 +0000 (03:18 +0000)
committerVictor Hernandez <vhernandez@apple.com>
Wed, 13 Jan 2010 03:18:30 +0000 (03:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93289 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Writer/BitcodeWriter.cpp

index fd1bade8f15d152eaefa0b553ee7a47ba9a9e46c..26c922a7810cd3a1cf63858f83689678a3fc9249 100644 (file)
@@ -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;