The first argument of StackTrace constructor is a pointer to uptr. Match
the type accordingly.
This fixes builds on 32-bit architectures.
using ::__sanitizer::StackTrace;
using ::llvm::memprof::MemInfoBlock;
-uint64_t PopulateFakeMap(const MemInfoBlock &FakeMIB, uint64_t StackPCBegin,
+uint64_t PopulateFakeMap(const MemInfoBlock &FakeMIB, uintptr_t StackPCBegin,
MIBMapTy &FakeMap) {
constexpr int kSize = 5;
- uint64_t array[kSize];
+ uintptr_t array[kSize];
for (int i = 0; i < kSize; i++) {
array[i] = StackPCBegin + i;
}