[sanitizer] Fix windows build.

llvm-svn: 208677
This commit is contained in:
Evgeniy Stepanov 2014-05-13 08:47:40 +00:00
parent 5680a26b0b
commit 6b21d560c9
1 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,7 @@ typedef AddrHashMap<CommonInterceptorMetadata, 31051> MetadataHashMap;
static MetadataHashMap *interceptor_metadata_map;
#if SI_NOT_WINDOWS
static void SetInterceptorMetadata(__sanitizer_FILE *addr,
const FileMetadata &file) {
MetadataHashMap::Handle h(interceptor_metadata_map, (uptr)addr);
@ -120,6 +121,7 @@ static void DeleteInterceptorMetadata(void *addr) {
MetadataHashMap::Handle h(interceptor_metadata_map, (uptr)addr, true);
CHECK(h.exists());
}
#endif // SI_NOT_WINDOWS
#if SANITIZER_INTERCEPT_TEXTDOMAIN
INTERCEPTOR(char*, textdomain, const char *domainname) {