forked from OSchip/llvm-project
parent
a885796d5f
commit
df1cca3a24
|
@ -1112,8 +1112,8 @@ void DwarfUnit::constructSubprogramArguments(DIE &Buffer, DITypeArray Args) {
|
||||||
createAndAddDIE(dwarf::DW_TAG_unspecified_parameters, Buffer);
|
createAndAddDIE(dwarf::DW_TAG_unspecified_parameters, Buffer);
|
||||||
} else {
|
} else {
|
||||||
DIE &Arg = createAndAddDIE(dwarf::DW_TAG_formal_parameter, Buffer);
|
DIE &Arg = createAndAddDIE(dwarf::DW_TAG_formal_parameter, Buffer);
|
||||||
addType(Arg, DIType(Ty));
|
addType(Arg, Ty);
|
||||||
if (DIType(Ty).isArtificial())
|
if (Ty.isArtificial())
|
||||||
addFlag(Arg, dwarf::DW_AT_artificial);
|
addFlag(Arg, dwarf::DW_AT_artificial);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue