[llvm] r220300 - Silence a -Wcast-qual warning; NFC.
Aaron Ballman
aaron at aaronballman.com
Tue Oct 21 09:12:37 PDT 2014
Author: aaronballman
Date: Tue Oct 21 11:12:37 2014
New Revision: 220300
URL: http://llvm.org/viewvc/llvm-project?rev=220300&view=rev
Log:
Silence a -Wcast-qual warning; NFC.
Modified:
llvm/trunk/unittests/IR/DebugInfoTest.cpp
Modified: llvm/trunk/unittests/IR/DebugInfoTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/DebugInfoTest.cpp?rev=220300&r1=220299&r2=220300&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/DebugInfoTest.cpp (original)
+++ llvm/trunk/unittests/IR/DebugInfoTest.cpp Tue Oct 21 11:12:37 2014
@@ -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;
More information about the llvm-commits
mailing list