aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/ConstantReader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-06-05 17:38:28 +0000
committerChris Lattner <sabre@nondot.org>2002-06-05 17:38:28 +0000
commita48836b195c71166e195a3e54c4566b78a20c477 (patch)
treebe734ab6b28fed95509fd01df5a882f3a3fc2938 /lib/Bytecode/Reader/ConstantReader.cpp
parent51727bee39ad77ee7778c3b64b37dee6cd67f0ed (diff)
Fix constness problems now that the cast operators preserve the constness
of their argument git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/ConstantReader.cpp')
-rw-r--r--lib/Bytecode/Reader/ConstantReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp
index eb0cadc8ec..ad27739bb2 100644
--- a/lib/Bytecode/Reader/ConstantReader.cpp
+++ b/lib/Bytecode/Reader/ConstantReader.cpp
@@ -160,7 +160,7 @@ bool BytecodeParser::parseTypeConstants(const uchar *&Buf, const uchar *EndBuf,
// abstract type to use the newty. This also will cause the opaque type
// to be deleted...
//
- cast<DerivedType>(Tab[i].get())->refineAbstractTypeTo(NewTy);
+ ((DerivedType*)Tab[i].get())->refineAbstractTypeTo(NewTy);
// This should have replace the old opaque type with the new type in the
// value table... or with a preexisting type that was already in the system