summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-10-17 21:14:27 +0000
committerZachary Turner <zturner@google.com>2016-10-17 21:14:27 +0000
commit47e2c0a9cb03a4cb48af6d772e064037523485e3 (patch)
treedf5448529c693195cfd5b6409086e785168faaea /llvm/unittests/Support
parent8716b3cbe0f47427f2a99755a1f6093b66a98391 (diff)
downloadbcm5719-llvm-47e2c0a9cb03a4cb48af6d772e064037523485e3.tar.gz
bcm5719-llvm-47e2c0a9cb03a4cb48af6d772e064037523485e3.zip
Try to fix build after invalid pointer conversion.
llvm-svn: 284428
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r--llvm/unittests/Support/NativeFormatTests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Support/NativeFormatTests.cpp b/llvm/unittests/Support/NativeFormatTests.cpp
index 7d1a67ff350..8475cafd0e2 100644
--- a/llvm/unittests/Support/NativeFormatTests.cpp
+++ b/llvm/unittests/Support/NativeFormatTests.cpp
@@ -36,8 +36,8 @@ template <typename T>
typename std::enable_if<std::is_pointer<T>::value, std::string>::type
format_number(T N, HexStyle Style, Optional<size_t> Precision = None,
Optional<int> Width = None) {
-
- return format_number(reinterpret_cast<uintptr_t>(N), Style, Precision, Width);
+ IntegerStyle IS = hexStyleToIntHexStyle(Style);
+ return format_number(reinterpret_cast<uintptr_t>(N), IS, Precision, Width);
}
std::string format_number(unsigned long N, IntegerStyle Style,
OpenPOWER on IntegriCloud