diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-22 22:12:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-22 22:12:56 +0000 |
commit | d79a726dc3c8af61b486948c97a183c7fe5b0179 (patch) | |
tree | 5c0dea40dbd8119f14253a60bae596db45a34988 /lib/CodeGen/CGDecl.cpp | |
parent | 3eabf1c0e695fd772ffee4ba469bc46292404ea1 (diff) |
Change uses of llvm::Type::isFirstClassType to use the new
llvm::Type::isSingleValueType. Currently these two functions have
the same behavior, but soon isFirstClassType will return true for
struct and array types.
Clang may some day want to use of isFirstClassType for some of
these some day as an optimization, but it'll require some
consideration.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index bd68288bba..6e40ea0582 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -169,9 +169,9 @@ void CodeGenFunction::EmitParmDecl(const ParmVarDecl &D, llvm::Value *Arg) { } else if (Target.useGlobalsForAutomaticVariables()) { DeclPtr = GenerateStaticBlockVarDecl(D, true, ".arg."); } else { - // A fixed sized first class variable becomes an alloca in the entry block. + // A fixed sized single-value variable becomes an alloca in the entry block. const llvm::Type *LTy = ConvertType(Ty); - if (LTy->isFirstClassType()) { + if (LTy->isSingleValueType()) { // TODO: Alignment DeclPtr = new llvm::AllocaInst(LTy, 0, std::string(D.getName())+".addr", AllocaInsertPt); |