Skip to content

Commit a304c82

Browse files
committed
[𝘀𝗽𝗿] initial version
Created using spr 1.3.5-bogner
1 parent 3026eca commit a304c82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,8 +973,10 @@ bool GCOVProfiler::emitProfileNotes(
973973
out.write(Tmp, 4);
974974
}
975975
write(Stamp);
976+
// getcwd() breaks local determinism and is not easy to adjust with
977+
// -ffile-prefix-map. Just write "." to appease GCC's gcov.
976978
if (Version >= 90)
977-
writeString(""); // unuseful current_working_directory
979+
writeString(".");
978980
if (Version >= 80)
979981
write(0); // unuseful has_unexecuted_blocks
980982

0 commit comments

Comments
 (0)