summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2018-03-01 13:31:57 +0000
committerThan McIntosh <thanm@google.com>2018-03-01 13:31:57 +0000
commitb3d88a7466d1d702f2fb5250ab0b0bda2ea59892 (patch)
tree5bc54202827b1732a0281fa12eece0c2e5654bff /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
parentd49e75afbdad10e86ef5bfb6d53b86e2f7c63e50 (diff)
downloadbcm5719-llvm-b3d88a7466d1d702f2fb5250ab0b0bda2ea59892.tar.gz
bcm5719-llvm-b3d88a7466d1d702f2fb5250ab0b0bda2ea59892.zip
[CodeGen] fix argument attribute in lowering statepoint/patchpoint
Summary: Use the correct loop index varaible, ArgI, to retrieve attributes. Reviewers: thanm, sanjoy, rnk Reviewed By: rnk Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D43832 llvm-svn: 326433
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index bc961386e6d..0a420ae0145 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -702,7 +702,7 @@ bool FastISel::lowerCallOperands(const CallInst *CI, unsigned ArgIdx,
ArgListEntry Entry;
Entry.Val = V;
Entry.Ty = V->getType();
- Entry.setAttributes(&CS, ArgIdx);
+ Entry.setAttributes(&CS, ArgI);
Args.push_back(Entry);
}
OpenPOWER on IntegriCloud