projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cleanup compiler warnings on discarding type qualifiers in casts. Switch to C++ style...
[oota-llvm.git]
/
lib
/
Target
/
ARM
/
ARMConstantPoolValue.cpp
diff --git
a/lib/Target/ARM/ARMConstantPoolValue.cpp
b/lib/Target/ARM/ARMConstantPoolValue.cpp
index 1820b323f8237280428ccd591406860f2ec60b55..cdb3934ca7129b71e6621b7c188fe579ff5e297e 100644
(file)
--- 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 *