blob: 8904d1040ea7e3834b37976d72ebedf00f56148b [file] [log] [blame]
Alexey Samsonov8bd90982012-06-07 09:50:16 +00001//===-- sanitizer_placement_new.h -------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file is shared between AddressSanitizer and ThreadSanitizer
11// run-time libraries.
12//
13// The file provides 'placement new'.
14// Do not include it into header files, only into source files.
15//===----------------------------------------------------------------------===//
16#ifndef SANITIZER_PLACEMENT_NEW_H
17#define SANITIZER_PLACEMENT_NEW_H
18
19#include "sanitizer_internal_defs.h"
20
Peter Collingbourne50cb32e2013-10-24 06:23:39 +000021inline void *operator new(__sanitizer::operator_new_size_type sz, void *p) {
Alexey Samsonov8b9aea52012-06-07 10:09:41 +000022 return p;
23}
Alexey Samsonov8bd90982012-06-07 09:50:16 +000024
25#endif // SANITIZER_PLACEMENT_NEW_H