[llvm] r270299 - Fix implicit type conversion. NFC.
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Fri May 20 17:36:47 PDT 2016
Author: cbieneman
Date: Fri May 20 19:36:47 2016
New Revision: 270299
URL: http://llvm.org/viewvc/llvm-project?rev=270299&view=rev
Log:
Fix implicit type conversion. NFC.
Modified:
llvm/trunk/lib/Support/Unix/Signals.inc
Modified: llvm/trunk/lib/Support/Unix/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Signals.inc?rev=270299&r1=270298&r2=270299&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Signals.inc (original)
+++ llvm/trunk/lib/Support/Unix/Signals.inc Fri May 20 19:36:47 2016
@@ -137,7 +137,7 @@ static void CreateSigAltStack() {
return;
stack_t AltStack = {};
- AltStack.ss_sp = malloc(AltStackSize);
+ AltStack.ss_sp = reinterpret_cast<char *>(malloc(AltStackSize));
AltStack.ss_size = AltStackSize;
if (sigaltstack(&AltStack, &OldAltStack) != 0)
free(AltStack.ss_sp);
More information about the llvm-commits
mailing list