diff --git a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp b/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp index a598af4f228d..8e85d3dec6a0 100644 --- a/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp +++ b/llvm/lib/Target/ARM/ARMConstantPoolValue.cpp @@ -66,7 +66,7 @@ int ARMConstantPoolValue::getExistingMachineCPValue(MachineConstantPool *CP, return -1; } -ARMConstantPoolValue::~ARMConstantPoolValue(void) { +ARMConstantPoolValue::~ARMConstantPoolValue() { free((void*)S); }