forked from OSchip/llvm-project
[FastISel] Fix a bug in FastISel::CallLoweringInfo.
This fixes a bug in FastISel::CallLoweringInfo, where the number of arguments was obtained from the argument vector before it had been initialized. Test case follows in another commit. llvm-svn: 217832
This commit is contained in:
parent
d4f4c4e416
commit
3c5f180255
|
@ -103,8 +103,8 @@ public:
|
|||
RetZExt = Call.paramHasAttr(0, Attribute::ZExt);
|
||||
|
||||
CallConv = Call.getCallingConv();
|
||||
NumFixedArgs = FuncTy->getNumParams();
|
||||
Args = std::move(ArgsList);
|
||||
NumFixedArgs = FuncTy->getNumParams();
|
||||
|
||||
CS = &Call;
|
||||
|
||||
|
@ -127,8 +127,8 @@ public:
|
|||
RetZExt = Call.paramHasAttr(0, Attribute::ZExt);
|
||||
|
||||
CallConv = Call.getCallingConv();
|
||||
NumFixedArgs = (FixedArgs == ~0U) ? FuncTy->getNumParams() : FixedArgs;
|
||||
Args = std::move(ArgsList);
|
||||
NumFixedArgs = (FixedArgs == ~0U) ? FuncTy->getNumParams() : FixedArgs;
|
||||
|
||||
CS = &Call;
|
||||
|
||||
|
|
Loading…
Reference in New Issue