Skip to content

Commit 0ad5367

Browse files
authored
Merge pull request #2283 from zhaomaosu/fix-build-fail
[DeviceASAN] Fix build error when using libcxx
2 parents 93fc56a + aeef794 commit 0ad5367

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

source/loader/layers/sanitizer/asan_libdevice.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ struct LocalArgsInfo {
7171
uint64_t SizeWithRedZone = 0;
7272
};
7373

74-
constexpr std::size_t ASAN_MAX_NUM_REPORTS = 10;
74+
constexpr uint64_t ASAN_MAX_NUM_REPORTS = 10;
7575

7676
struct LaunchInfo {
7777
uintptr_t GlobalShadowOffset = 0;
@@ -98,7 +98,7 @@ constexpr unsigned ASAN_SHADOW_GRANULARITY = 1ULL << ASAN_SHADOW_SCALE;
9898

9999
// Based on the observation, only the last 24 bits of the address of the private
100100
// variable have changed
101-
constexpr std::size_t ASAN_PRIVATE_SIZE = 0xffffffULL + 1;
101+
constexpr uint64_t ASAN_PRIVATE_SIZE = 0xffffffULL + 1;
102102

103103
// These magic values are written to shadow for better error
104104
// reporting.

source/loader/layers/sanitizer/linux/symbolizer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
88
*
99
*/
10-
#include "common.hpp"
1110
#include "llvm/DebugInfo/Symbolize/DIPrinter.h"
1211
#include "llvm/DebugInfo/Symbolize/Symbolize.h"
1312
#include <link.h>

0 commit comments

Comments
 (0)