Skip to content

Commit f5d6ce9

Browse files
committed
[Sanitizer][Windows] Fix Windows buildbot failure after 6479006
In #77488, a param raw_report is added for function UnmapOrDie(), causes the Windows buildbot failure, see https://lab.llvm.org/buildbot/#/builders/127/builds/62395. This patch should fix the Windows buildbot failure.
1 parent dd7386d commit f5d6ce9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ class InternalMmapVectorNoCtor {
599599
T *new_data =
600600
(T *)MmapOrDie(new_capacity_bytes, "InternalMmapVector", raw_report);
601601
internal_memcpy(new_data, data_, size_ * sizeof(T));
602-
UnmapOrDie(data_, capacity_bytes_);
602+
UnmapOrDie(data_, capacity_bytes_, raw_report);
603603
data_ = new_data;
604604
capacity_bytes_ = new_capacity_bytes;
605605
}

compiler-rt/lib/sanitizer_common/sanitizer_win.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ void *MmapOrDie(uptr size, const char *mem_type, bool raw_report) {
144144
return rv;
145145
}
146146

147-
void UnmapOrDie(void *addr, uptr size) {
147+
void UnmapOrDie(void *addr, uptr size, bool) {
148148
if (!size || !addr)
149149
return;
150150

0 commit comments

Comments
 (0)