aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMConstantPoolValue.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-12-21 19:09:53 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-12-21 19:09:53 +0000
commit4e23ebe7665f2e03c0bb8db3ae5ab90eb0f724e5 (patch)
tree41b72ae929f7ff5688f27b1666f28ace7276ae1b /lib/Target/ARM/ARMConstantPoolValue.cpp
parent70fe6ecb6d0c3b556f2c4e3c1e5013da821beded (diff)
Cleanup compiler warnings on discarding type qualifiers in casts. Switch to C++ style casts.
Patch by Saleem Abdulrasool! Differential Revision: http://llvm-reviews.chandlerc.com/D204 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170917 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMConstantPoolValue.cpp')
-rw-r--r--lib/Target/ARM/ARMConstantPoolValue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMConstantPoolValue.cpp b/lib/Target/ARM/ARMConstantPoolValue.cpp
index 1820b323f8..cdb3934ca7 100644
--- a/lib/Target/ARM/ARMConstantPoolValue.cpp
+++ b/lib/Target/ARM/ARMConstantPoolValue.cpp
@@ -209,7 +209,7 @@ ARMConstantPoolSymbol::ARMConstantPoolSymbol(LLVMContext &C, const char *s,
S(strdup(s)) {}
ARMConstantPoolSymbol::~ARMConstantPoolSymbol() {
- free((void*)S);
+ free(const_cast<void*>(reinterpret_cast<const void *>(S)));
}
ARMConstantPoolSymbol *