summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-01 18:26:53 +0000
committerChris Lattner <sabre@nondot.org>2001-10-01 18:26:53 +0000
commit8f191129239552b876f2c6717fae9619a7701a03 (patch)
tree7ecdf5b84fc94a779ad69fd6f665564d24258f2c /llvm/lib/Bytecode/Writer
parent4b717c0edc082166e85181fa70e76b17669aebe2 (diff)
downloadbcm5719-llvm-8f191129239552b876f2c6717fae9619a7701a03.tar.gz
bcm5719-llvm-8f191129239552b876f2c6717fae9619a7701a03.zip
Add more support for new style casts
Convert more code to use them llvm-svn: 695
Diffstat (limited to 'llvm/lib/Bytecode/Writer')
-rw-r--r--llvm/lib/Bytecode/Writer/Writer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp
index 04a0ca4624f..94cbcec328d 100644
--- a/llvm/lib/Bytecode/Writer/Writer.cpp
+++ b/llvm/lib/Bytecode/Writer/Writer.cpp
@@ -84,7 +84,8 @@ void BytecodeWriter::outputConstants(bool isMethod) {
unsigned NC = ValNo; // Number of constants
for (; NC < Plane.size() &&
- (Plane[NC]->isConstant() || Plane[NC]->isType()); NC++) /*empty*/;
+ (isa<ConstPoolVal>(Plane[NC]) ||
+ isa<Type>(Plane[NC])); NC++) /*empty*/;
NC -= ValNo; // Convert from index into count
if (NC == 0) continue; // Skip empty type planes...
OpenPOWER on IntegriCloud