Skip to content

Commit fd8a78e

Browse files
MichalMroz12igcbot
authored andcommitted
Coverity Refactors and fixes
Coverity Refactors and fixes
1 parent 4745d31 commit fd8a78e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

visa/iga/IGALibrary/InstDiff.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,8 @@ iga_status_t iga::DebugCompaction(Platform p, int /* verbosity */,
677677

678678
CompactionStats cs;
679679

680+
std::ios_base::fmtflags osFlags = os.flags();
681+
680682
bool success = true;
681683
size_t pc = 0;
682684
while (pc < bitsLen) {
@@ -798,5 +800,7 @@ iga_status_t iga::DebugCompaction(Platform p, int /* verbosity */,
798800
}
799801
}
800802

803+
os.flags(osFlags);
804+
801805
return IGA_SUCCESS;
802806
}

0 commit comments

Comments
 (0)