mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Fixed a bug handling void function types.
Requires rebuild of llvm-gcc4 (touch llvm-debug.cpp.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29131 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1413,7 +1413,7 @@ DIE *DwarfWriter::NewType(DIE *Context, TypeDesc *TyDesc, CompileUnit *Unit) {
|
||||
Ty->AddUInt(DW_AT_prototyped, DW_FORM_flag, 1);
|
||||
// Add return type.
|
||||
Ty->AddDIEntry(DW_AT_type, DW_FORM_ref4,
|
||||
NewType(Context, cast<TypeDesc>(Elements[0]), Unit));
|
||||
NewType(Context, dyn_cast<TypeDesc>(Elements[0]), Unit));
|
||||
|
||||
// Add arguments.
|
||||
for(unsigned i = 1, N = Elements.size(); i < N; ++i) {
|
||||
|
Reference in New Issue
Block a user