diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2010-06-16 16:22:04 +0000 | 
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-06-16 16:22:04 +0000 | 
| commit | 4a3030784051dea52d8939d7bde776befb6d8bca (patch) | |
| tree | 0c4b7fc07d5e113b399195fdd8df42473dc13cae /clang/lib/Sema/SemaDeclCXX.cpp | |
| parent | a92c4424379c7d2b77b85ddd045c33fce23f7e17 (diff) | |
| download | bcm5719-llvm-4a3030784051dea52d8939d7bde776befb6d8bca.tar.gz bcm5719-llvm-4a3030784051dea52d8939d7bde776befb6d8bca.zip | |
Fixed conflict between objc_memmove_collectable builtin 
decl. and one ddefined in darwin header file.
llvm-svn: 106107
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclCXX.cpp | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index dfba2f835ac..2a881ff4348 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -4567,7 +4567,7 @@ void Sema::DefineImplicitCopyAssignment(SourceLocation CurrentLocation,    // \brief Reference to the __builtin_memcpy function.    Expr *BuiltinMemCpyRef = 0; -  // \brief Reference to the objc_memmove_collectable function. +  // \brief Reference to the __builtin_objc_memmove_collectable function.    Expr *CollectableMemCpyRef = 0;    // Assign non-static members. @@ -4652,8 +4652,9 @@ void Sema::DefineImplicitCopyAssignment(SourceLocation CurrentLocation,        if (NeedsCollectableMemCpy) {          if (!CollectableMemCpyRef) { -          // Create a reference to the objc_memmove_collectable function. -          LookupResult R(*this, &Context.Idents.get("objc_memmove_collectable"),  +          // Create a reference to the __builtin_objc_memmove_collectable function. +          LookupResult R(*this,  +                         &Context.Idents.get("__builtin_objc_memmove_collectable"),                            Loc, LookupOrdinaryName);            LookupName(R, TUScope, true); | 

