mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
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
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user