Skip to content

Profiling file not generated #62

@flyree

Description

@flyree

I found a case when I was running llfi. This is the generated profiling IR:

%178 = landingpad { i8_, i32 } personality i8_ bitcast (i32 (...)* @gxx_personality_v0 to i8)
catch i8
null, !llfi_index !15416
call void @doProfiling(i32 59)
%179 = extractvalue { i8_, i32 } %178, 0, !llfi_index !15417
call void @doProfiling(i32 57)
call void @_clang_call_terminate(i8 %179) #11, !llfi_index !15418
call void @endProfiling()
unreachable, !llfi_index !15419

I am not sure this endProfiling function would be called. This has something to do with the exception handling in c++. I think endProfiling should be added before that terminate call.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions