Fix build broken by r236174.

Apparently va_list is literally a char* on Windows.

llvm-svn: 236177
This commit is contained in:
Zachary Turner 2015-04-29 23:24:12 +00:00
parent 20e883e59b
commit b74e279fe1
1 changed files with 4 additions and 4 deletions

View File

@ -217,7 +217,7 @@ Log::Error(const char *format, ...)
if (arg_msg == nullptr)
return;
VAPrintf("error: %s", arg_msg);
Printf("error: %s", args);
free(arg_msg);
}
@ -236,7 +236,7 @@ Log::FatalError(int err, const char *format, ...)
if (arg_msg != nullptr)
{
VAPrintf("error: %s", arg_msg);
Printf("error: %s", arg_msg);
::free(arg_msg);
}
::exit(err);
@ -278,7 +278,7 @@ Log::WarningVerbose(const char *format, ...)
if (arg_msg == nullptr)
return;
VAPrintf("warning: %s", arg_msg);
Printf("warning: %s", arg_msg);
free(arg_msg);
}
//----------------------------------------------------------------------
@ -296,7 +296,7 @@ Log::Warning(const char *format, ...)
if (arg_msg == nullptr)
return;
VAPrintf("warning: %s", arg_msg);
Printf("warning: %s", arg_msg);
free(arg_msg);
}