diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-04 04:31:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-04 04:31:02 +0000 |
commit | 59c08e76caf44901535720b6188539e8a8bd8bab (patch) | |
tree | 334286ebd6450064cc271d86f5284c5d1d4bd4eb /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | ad9a6c4855fb5a696b9be36e120cbc364cb7160a (diff) | |
download | llvm-59c08e76caf44901535720b6188539e8a8bd8bab.zip llvm-59c08e76caf44901535720b6188539e8a8bd8bab.tar.gz llvm-59c08e76caf44901535720b6188539e8a8bd8bab.tar.bz2 |
switch ValueMap to using AssertingVH. This is an old patch I had laying
around in a tree I forgot about.
llvm-svn: 78048
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 4b92516..724e1ae 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -1083,7 +1083,7 @@ static void WriteValueSymbolTable(const ValueSymbolTable &VST, // VST_ENTRY: [valueid, namechar x N] // VST_BBENTRY: [bbid, namechar x N] unsigned Code; - if (isa<BasicBlock>(SI->getValue())) { + if (isa<BasicBlock>(*SI->getValue())) { Code = bitc::VST_CODE_BBENTRY; if (isChar6) AbbrevToUse = VST_BBENTRY_6_ABBREV; |