[Runtime] Return nullptr instead of NULL in lookupSection stubs.

rdar://problem/36997475
This commit is contained in:
Mike Ash
2018-03-27 11:54:28 -04:00
parent d024fd7487
commit a3a44a1529
2 changed files with 2 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ int swift::lookupSymbol(const void *address, SymbolInfo *info) {
// This is only used for backward deployment hooks, which we currently only support for
// MachO. Add a stub here to make sure it still compiles.
void *lookupSection(const char *segment, const char *section, size_t *outSize) {
return NULL;
return nullptr;
}
#endif // defined(__ELF__)