b667dd7017
2019-08-14 Martin Liska <mliska@suse.cz> PR sanitizer/89832 PR sanitizer/91325 * All source files: Merge from upstream 368656. From-SVN: r274426
25 lines
885 B
C++
25 lines
885 B
C++
//===-- sanitizer_placement_new.h -------------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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"
|
|
|
|
inline void *operator new(__sanitizer::operator_new_size_type sz, void *p) {
|
|
return p;
|
|
}
|
|
|
|
#endif // SANITIZER_PLACEMENT_NEW_H
|