Cleanup compiler warnings on discarding type qualifiers in casts. Switch to C++ style...
[oota-llvm.git] / lib / Target / ARM / ARMConstantPoolValue.cpp
index 1820b323f8237280428ccd591406860f2ec60b55..cdb3934ca7129b71e6621b7c188fe579ff5e297e 100644 (file)
@@ -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 *