summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-21 23:24:10 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-21 23:24:10 +0000
commit6b7f12c0396e18f51540c4901bb8ccbc35db1151 (patch)
tree9224134beb04e1b481f52b802c9cd5fb6ba120df /clang/lib/Sema/SemaInit.h
parent14b1d758c621145e26dc9476f0fa242b7c42930b (diff)
downloadbcm5719-llvm-6b7f12c0396e18f51540c4901bb8ccbc35db1151.tar.gz
bcm5719-llvm-6b7f12c0396e18f51540c4901bb8ccbc35db1151.zip
Switch the initialization of Objective-C message parameters (as occurs
during message sends) over to the new initialization code and away from the C-only CheckSingleAssignmentConstraints. The enables the use of C++ types in method parameters and message arguments, as well as unifying more initialiation code overall. llvm-svn: 102035
Diffstat (limited to 'clang/lib/Sema/SemaInit.h')
-rw-r--r--clang/lib/Sema/SemaInit.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaInit.h b/clang/lib/Sema/SemaInit.h
index bfbb0f4049c..ba11470d24a 100644
--- a/clang/lib/Sema/SemaInit.h
+++ b/clang/lib/Sema/SemaInit.h
@@ -142,7 +142,12 @@ public:
/// \brief Create the initialization entity for a parameter that is
/// only known by its type.
static InitializedEntity InitializeParameter(QualType Type) {
- return InitializedEntity(EK_Parameter, SourceLocation(), Type);
+ InitializedEntity Entity;
+ Entity.Kind = EK_Parameter;
+ Entity.Type = Type;
+ Entity.Parent = 0;
+ Entity.VariableOrMember = 0;
+ return Entity;
}
/// \brief Create the initialization entity for the result of a function.
OpenPOWER on IntegriCloud