Skip to content

Commit 78dedd3

Browse files
author
Davide Italiano
committed
[ClangImporter] size() for MemoryBlock is now allocatedSize().
1 parent cdfd836 commit 78dedd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ namespace {
221221
error);
222222
assert(!error && "failed to allocated read-only zero-filled memory");
223223
init(static_cast<char *>(memory.base()),
224-
static_cast<char *>(memory.base()) + memory.size() - 1,
224+
static_cast<char *>(memory.base()) + memory.allocatedSize() - 1,
225225
/*null-terminated*/true);
226226
}
227227

0 commit comments

Comments
 (0)