diff options
author | Hans Wennborg <hans@hanshq.net> | 2017-04-28 23:01:32 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2017-04-28 23:01:32 +0000 |
commit | 0f88d863b477afef36f02fd11a96abd9eb5563a5 (patch) | |
tree | 564f3c06fa76fd25d150342cb55ba3f8785e5421 /llvm/lib/CodeGen/GlobalISel/CallLowering.cpp | |
parent | e0f9e984fd7e6c02016b16eb355e788a645091ee (diff) | |
download | bcm5719-llvm-0f88d863b477afef36f02fd11a96abd9eb5563a5.tar.gz bcm5719-llvm-0f88d863b477afef36f02fd11a96abd9eb5563a5.zip |
Revert r301697 "[IR] Make add/remove Attributes use AttrBuilder instead of AttributeList"
This broke the Clang build. (Clang-side patch missing?)
Original commit message:
> [IR] Make add/remove Attributes use AttrBuilder instead of
> AttributeList
>
> This change cleans up call sites and avoids creating temporary
> AttributeList objects.
>
> NFC
llvm-svn: 301712
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/CallLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/CallLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp b/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp index 47433eb126d..ebfe6cb3b73 100644 --- a/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp +++ b/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp @@ -83,8 +83,8 @@ void CallLowering::setArgFlags(CallLowering::ArgInfo &Arg, unsigned OpIdx, // For ByVal, alignment should be passed from FE. BE will guess if // this info is not there but there are cases it cannot get right. unsigned FrameAlign; - if (FuncInfo.getParamAlignment(OpIdx - 2)) - FrameAlign = FuncInfo.getParamAlignment(OpIdx - 2); + if (FuncInfo.getParamAlignment(OpIdx - 1)) + FrameAlign = FuncInfo.getParamAlignment(OpIdx - 1); else FrameAlign = getTLI()->getByValTypeAlignment(ElementTy, DL); Arg.Flags.setByValAlign(FrameAlign); |