[PATCH] D29069: [MSP430] Add SRet support to MSP430 target
Anton Korobeynikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 4 16:21:58 PST 2017
asl added inline comments.
================
Comment at: lib/Target/MSP430/MSP430ISelLowering.cpp:248
SmallVectorImpl<unsigned> &Out) {
- unsigned CurrentArgIndex = ~0U;
- for (unsigned i = 0, e = Args.size(); i != e; i++) {
- if (CurrentArgIndex == Args[i].OrigArgIndex) {
- Out.back()++;
+ unsigned CurrentArgIndex = Args[0].OrigArgIndex;
+ Out.push_back(0);
----------------
Is there any guard preventing calling this function when we're having zero args?
https://reviews.llvm.org/D29069
More information about the llvm-commits
mailing list