diff options
| author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2008-11-21 07:57:42 +0000 |
|---|---|---|
| committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2008-11-21 07:57:42 +0000 |
| commit | 8d668a467ab782bd57c54a639a03f2e74382af84 (patch) | |
| tree | 088933046b1cb0a865e8231629b0434a45e5ab3e /lib/CodeGen/CGExprAgg.cpp | |
| parent | 416e46febcb7084e715fbe0b9bf2cab7a85f5242 (diff) | |
| download | clang-8d668a467ab782bd57c54a639a03f2e74382af84.tar.gz clang-8d668a467ab782bd57c54a639a03f2e74382af84.tar.bz2 clang-8d668a467ab782bd57c54a639a03f2e74382af84.tar.xz | |
mem[cpy,set,move] intrinsics are now overloaded.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprAgg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index 1b554b2205..7caf6dfd7f 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -327,7 +327,7 @@ void AggExprEmitter::EmitNullInitializationToLValue(LValue LV, QualType T) { // There's a potential optimization opportunity in combining // memsets; that would be easy for arrays, but relatively // difficult for structures with the current code. - llvm::Value *MemSet = CGF.CGM.getIntrinsic(llvm::Intrinsic::memset_i64); + llvm::Value *MemSet = CGF.CGM.getIntrinsic(llvm::Intrinsic::memset); uint64_t Size = CGF.getContext().getTypeSize(T); const llvm::Type *BP = llvm::PointerType::getUnqual(llvm::Type::Int8Ty); |
