Skip to content

Commit

Permalink
Appease analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
pchintalapudi committed Jul 26, 2023
1 parent ac4dd57 commit 7a67140
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/jitlayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1260,13 +1260,15 @@ namespace {
uint64_t insts;
uint64_t bbs;

void dump(ios_t *stream) {
void dump(ios_t *stream) JL_NOTSAFEPOINT {
ios_printf(stream, " \"%s\":\n", name.c_str());
ios_printf(stream, " instructions: %u\n", insts);
ios_printf(stream, " basicblocks: %zd\n", bbs);
}

Stat(Function &F) : name(F.getName().str()), insts(F.getInstructionCount()), bbs(countBasicBlocks(F)) {}
Stat(Function &F) JL_NOTSAFEPOINT : name(F.getName().str()), insts(F.getInstructionCount()), bbs(countBasicBlocks(F)) {}

~Stat() JL_NOTSAFEPOINT = default;
};
SmallVector<Stat, 8> before_stats;
{
Expand Down

0 comments on commit 7a67140

Please sign in to comment.