mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Add more support for new style casts
Convert more code to use them git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -55,7 +55,7 @@ const Type *BytecodeParser::getType(unsigned ID) {
|
||||
const Value *D = getValue(Type::TypeTy, ID, false);
|
||||
if (D == 0) return failure<const Type*>(0);
|
||||
|
||||
return D->castTypeAsserting();
|
||||
return cast<Type>(D);
|
||||
}
|
||||
|
||||
bool BytecodeParser::insertValue(Value *Val, vector<ValueList> &ValueTab) {
|
||||
@ -341,7 +341,7 @@ bool BytecodeParser::ParseModuleGlobalInfo(const uchar *&Buf, const uchar *End,
|
||||
Value *V = getValue(Ty->castPointerType()->getValueType(),
|
||||
InitSlot, false);
|
||||
if (V == 0) return failure(true);
|
||||
Initializer = V->castConstantAsserting();
|
||||
Initializer = cast<ConstPoolVal>(V);
|
||||
}
|
||||
|
||||
// Create the global variable...
|
||||
|
Reference in New Issue
Block a user