mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
Simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45950 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -406,10 +406,7 @@ bool CallInst::isStructReturn() const {
|
|||||||
|
|
||||||
/// @brief Determine if any call argument is an aggregate passed by value.
|
/// @brief Determine if any call argument is an aggregate passed by value.
|
||||||
bool CallInst::hasByValArgument() const {
|
bool CallInst::hasByValArgument() const {
|
||||||
const Value *Callee = getCalledValue();
|
for (unsigned i = 1, e = getNumOperands(); i != e; ++i)
|
||||||
const PointerType *CalleeTy = cast<PointerType>(Callee->getType());
|
|
||||||
const FunctionType *FTy = cast<FunctionType>(CalleeTy->getElementType());
|
|
||||||
for (unsigned i = 1, e = FTy->getNumParams()+1; i != e; ++i)
|
|
||||||
if (paramHasAttr(i, ParamAttr::ByVal))
|
if (paramHasAttr(i, ParamAttr::ByVal))
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user