From 72376cccc5e7e5663752b9fd267914ca062ab7c5 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 21 Oct 2014 16:12:37 +0000 Subject: [PATCH] Silence a -Wcast-qual warning; NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220300 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/IR/DebugInfoTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/IR/DebugInfoTest.cpp b/unittests/IR/DebugInfoTest.cpp index e8bbe61d45f..1fa851e39ae 100644 --- a/unittests/IR/DebugInfoTest.cpp +++ b/unittests/IR/DebugInfoTest.cpp @@ -15,7 +15,7 @@ using namespace llvm; namespace llvm { static void PrintTo(const StringRef &S, ::std::ostream *os) { - *os << "(" << (void *)S.data() << "," << S.size() << ") = '"; + *os << "(" << (const void *)S.data() << "," << S.size() << ") = '"; for (auto C : S) if (C) *os << C;