aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorMichael Liao <michael.hliao@gmail.com>2020-05-04 23:53:24 -0400
committerMichael Liao <michael.hliao@gmail.com>2020-05-05 15:31:51 -0400
commit276c8dde0b58cfe29035448a27e16eff9fcf2a5a (patch)
tree54726e18ba3def3dac5bf01ca003ceeec6baac7c /clang/lib/CodeGen/CodeGenFunction.h
parent86e50af72d0a0f5cddd2cb487681709eda7934e8 (diff)
downloadllvm-276c8dde0b58cfe29035448a27e16eff9fcf2a5a.zip
llvm-276c8dde0b58cfe29035448a27e16eff9fcf2a5a.tar.gz
llvm-276c8dde0b58cfe29035448a27e16eff9fcf2a5a.tar.bz2
[clang][codegen] Refactor argument loading in function prolog. NFC.
Summary: - Skip copying function arguments and unnecessary casting by using them directly. Reviewers: rjmccall, kerbowa, yaxunl Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79394
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index adc7b2e..da8681a 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -4356,7 +4356,7 @@ private:
///
/// \param AI - The first function argument of the expansion.
void ExpandTypeFromArgs(QualType Ty, LValue Dst,
- SmallVectorImpl<llvm::Value *>::iterator &AI);
+ llvm::Function::arg_iterator &AI);
/// ExpandTypeToArgs - Expand an CallArg \arg Arg, with the LLVM type for \arg
/// Ty, into individual arguments on the provided vector \arg IRCallArgs,