diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-07-13 15:27:42 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-07-13 15:27:42 +0000 |
commit | d04c159ac13abbf15de719de1637c59dc38d4216 (patch) | |
tree | 1114a78f94dbe364c841803f389cb1d7a5054c8f /lib/CodeGen/DwarfWriter.cpp | |
parent | 45c04fc676027c2db5e20939c487dea54b3db151 (diff) |
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
Diffstat (limited to 'lib/CodeGen/DwarfWriter.cpp')
-rw-r--r-- | lib/CodeGen/DwarfWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index 14bb9622ed..ff62b4624c 100644 --- a/lib/CodeGen/DwarfWriter.cpp +++ b/lib/CodeGen/DwarfWriter.cpp @@ -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) { |