[LLVMdev] Passing DW_TAG_typedef as the type to DIBuilder's createFunction

Duncan Sands baldrick at free.fr
Tue Apr 9 01:53:14 PDT 2013


Hi David, I'm seeing an assertion failure when passing this node

   !{i32 786454, metadata <badref>, metadata <badref>, metadata !"fn_t", i32 5, 
i64 0, i64 0, i64 0, i32 0, metadata <badref>} ; [ DW_TAG_typedef ] [fn_t] [line 
5, size 0, align 0, offset 0] [from ]

as the function type parameter to DIBuilder::createFunction, due to this check
in DebugInfo.cpp:

486	  DICompositeType Ty = getType();
487	  if (!Ty.Verify())
488	    return false;

Is it in fact wrong to pass a typedef here?

Thanks, Duncan.



More information about the llvm-dev mailing list