mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-21 03:05:15 +00:00
Add a warning about not "new"ing or "delete"ing CallSites
llvm-svn: 9782
This commit is contained in:
parent
9116e0e93e
commit
f84726a3fd
@ -10,6 +10,12 @@
|
||||
// This file defines the CallSite class, which is a handy wrapper for code that
|
||||
// wants to treat Call and Invoke instructions in a generic way.
|
||||
//
|
||||
// NOTE: This class is supposed to have "value semantics". So it should be
|
||||
// passed by value, not by reference; it should not be "new"ed or "delete"d. It
|
||||
// is efficiently copyable, assignable and constructable, with cost equivalent
|
||||
// to copying a pointer. (You will notice that it has only a single data
|
||||
// member.)
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_SUPPORT_CALLSITE_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user