2012-11-12 16:53:47 +01:00
|
|
|
//===-- sanitizer_placement_new.h -------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file is shared between AddressSanitizer and ThreadSanitizer
|
|
|
|
// run-time libraries.
|
|
|
|
//
|
|
|
|
// The file provides 'placement new'.
|
|
|
|
// Do not include it into header files, only into source files.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SANITIZER_PLACEMENT_NEW_H
|
|
|
|
#define SANITIZER_PLACEMENT_NEW_H
|
|
|
|
|
|
|
|
#include "sanitizer_internal_defs.h"
|
|
|
|
|
2013-12-05 10:18:38 +01:00
|
|
|
inline void *operator new(__sanitizer::operator_new_size_type sz, void *p) {
|
2012-11-12 16:53:47 +01:00
|
|
|
return p;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // SANITIZER_PLACEMENT_NEW_H
|