diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-09 15:01:12 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-09 15:01:12 +0000 |
commit | 019c8869ed320be4dbe79d54b606d70e5da337ce (patch) | |
tree | 06485e74558fe05b3296c0106c524a61591362f9 /llvm/lib/VMCore/Instructions.cpp | |
parent | 0475f3b4e9d618a64a6f6738c03e23c0e6bb0523 (diff) | |
download | bcm5719-llvm-019c8869ed320be4dbe79d54b606d70e5da337ce.tar.gz bcm5719-llvm-019c8869ed320be4dbe79d54b606d70e5da337ce.zip |
For PR1146:
* Add ParamAttrList pointers to Function and CallInst.
* Move the implementation of ParamAttrList from Type.cpp to Function.cpp
llvm-svn: 35818
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r-- | llvm/lib/VMCore/Instructions.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index c7da56b96ff..c09ec3ce217 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/lib/VMCore/Instructions.cpp @@ -188,6 +188,7 @@ CallInst::~CallInst() { } void CallInst::init(Value *Func, Value* const *Params, unsigned NumParams) { + ParamAttrs = 0; NumOperands = NumParams+1; Use *OL = OperandList = new Use[NumParams+1]; OL[0].init(Func, this); @@ -208,6 +209,7 @@ void CallInst::init(Value *Func, Value* const *Params, unsigned NumParams) { } void CallInst::init(Value *Func, Value *Actual1, Value *Actual2) { + ParamAttrs = 0; NumOperands = 3; Use *OL = OperandList = new Use[3]; OL[0].init(Func, this); @@ -230,6 +232,7 @@ void CallInst::init(Value *Func, Value *Actual1, Value *Actual2) { } void CallInst::init(Value *Func, Value *Actual) { + ParamAttrs = 0; NumOperands = 2; Use *OL = OperandList = new Use[2]; OL[0].init(Func, this); @@ -248,6 +251,7 @@ void CallInst::init(Value *Func, Value *Actual) { } void CallInst::init(Value *Func) { + ParamAttrs = 0; NumOperands = 1; Use *OL = OperandList = new Use[1]; OL[0].init(Func, this); |