aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Argument.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Argument.h')
-rw-r--r--include/llvm/Argument.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Argument.h b/include/llvm/Argument.h
index c995043..bb71e11 100644
--- a/include/llvm/Argument.h
+++ b/include/llvm/Argument.h
@@ -35,6 +35,11 @@ class Argument : public Value { // Defined in the Function.cpp file
friend class SymbolTableListTraits<Argument, Function>;
void setParent(Function *parent);
+protected:
+ static void destroyThis(Argument*v) {
+ Value::destroyThis(v);
+ }
+ friend class Value;
public:
/// Argument ctor - If Function argument is specified, this argument is
/// inserted at the end of the argument list for the function.