forked from OSchip/llvm-project
Windows/DynamicLibrary.inc: Fix trivial warnings. Thanks to John Myers!
llvm-svn: 134812
This commit is contained in:
parent
7b15d1885f
commit
ee24d32071
|
@ -115,7 +115,7 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
|
|||
E = OpenedHandles.end(); I != E; ++I) {
|
||||
FARPROC ptr = GetProcAddress((HMODULE)*I, symbolName);
|
||||
if (ptr) {
|
||||
return (void *) ptr;
|
||||
return (void *)(intptr_t)ptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#ifdef HAVE__ALLOCA
|
||||
EXPLICIT_SYMBOL(_alloca)
|
||||
EXPLICIT_SYMBOL2(alloca, _alloca);
|
||||
EXPLICIT_SYMBOL2(alloca, _alloca)
|
||||
#endif
|
||||
#ifdef HAVE___ALLOCA
|
||||
EXPLICIT_SYMBOL(__alloca)
|
||||
|
@ -62,5 +62,5 @@
|
|||
|
||||
/* msvcrt */
|
||||
#if defined(_MSC_VER)
|
||||
EXPLICIT_SYMBOL2(alloca, _alloca_probe);
|
||||
EXPLICIT_SYMBOL2(alloca, _alloca_probe)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue