summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-22 23:42:49 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-22 23:42:49 +0000
commit684d7bdc43fdbb0ed39acd238df46ca48441c32f (patch)
treed3b4bdfe587fa0efda0cc688c5f853914b523ba8 /clang/lib/Sema/SemaInit.h
parentc7a67b78773f64f12bc332882cb4220ea61ff778 (diff)
downloadbcm5719-llvm-684d7bdc43fdbb0ed39acd238df46ca48441c32f.tar.gz
bcm5719-llvm-684d7bdc43fdbb0ed39acd238df46ca48441c32f.zip
Allow the first parameter of operator new to be a cv-qualified
size_t. Also, fix an issue with initialization of parameters in calls, where we weren't removing the cv-qualifiers on the parameter type itself. Fixes PR5823. llvm-svn: 91941
Diffstat (limited to 'clang/lib/Sema/SemaInit.h')
-rw-r--r--clang/lib/Sema/SemaInit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaInit.h b/clang/lib/Sema/SemaInit.h
index 959c55e3d32..5eb819a6917 100644
--- a/clang/lib/Sema/SemaInit.h
+++ b/clang/lib/Sema/SemaInit.h
@@ -102,7 +102,7 @@ private:
/// \brief Create the initialization entity for a parameter.
InitializedEntity(ParmVarDecl *Parm)
- : Kind(EK_Parameter), Parent(0), Type(Parm->getType()),
+ : Kind(EK_Parameter), Parent(0), Type(Parm->getType().getUnqualifiedType()),
VariableOrMember(reinterpret_cast<DeclaratorDecl*>(Parm)) { }
/// \brief Create the initialization entity for the result of a
OpenPOWER on IntegriCloud