[llvm] 065044c - Fix 1f9e18b6565fd1bb69c4b649b9efd3467b3c7c7d
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 21 02:57:43 PST 2022
Author: serge-sans-paille
Date: 2022-01-21T11:57:32+01:00
New Revision: 065044c443f4041f32e0a8d6e633f9d92580fbca
URL: https://github.com/llvm/llvm-project/commit/065044c443f4041f32e0a8d6e633f9d92580fbca
DIFF: https://github.com/llvm/llvm-project/commit/065044c443f4041f32e0a8d6e633f9d92580fbca.diff
LOG: Fix 1f9e18b6565fd1bb69c4b649b9efd3467b3c7c7d
Don't assume iterator on std::array<char, ...> are char*, use .data() instead
Added:
Modified:
llvm/include/llvm/Demangle/Utility.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Demangle/Utility.h b/llvm/include/llvm/Demangle/Utility.h
index b816aa22c24e0..989b41701e4c9 100644
--- a/llvm/include/llvm/Demangle/Utility.h
+++ b/llvm/include/llvm/Demangle/Utility.h
@@ -50,7 +50,7 @@ class OutputBuffer {
}
std::array<char, 21> Temp;
- char *TempPtr = Temp.end();
+ char *TempPtr = Temp.data() + Temp.size();
while (N) {
*--TempPtr = char('0' + N % 10);
More information about the llvm-commits
mailing list