aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-22 15:35:07 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-22 15:35:07 +0000
commitd6542d8efcf8389c3aab764f9e29ac284e16eda6 (patch)
tree4d383f402c5436bc5a23ed146ab9c75d2a233fcb /lib/Sema/SemaExprCXX.cpp
parentbdc601b196c48d4cd56a5ceb45d41ae4e87371ab (diff)
Switch InitializedEntity from TypeLoc down to just QualTypes, since we don't use the location information but we did spend a bunch of time building faked-up TypeLocs
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r--lib/Sema/SemaExprCXX.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp
index 7c4ab890d0..92a94daea6 100644
--- a/lib/Sema/SemaExprCXX.cpp
+++ b/lib/Sema/SemaExprCXX.cpp
@@ -446,18 +446,9 @@ Sema::BuildCXXNew(SourceLocation StartLoc, bool UseGlobal,
ConstructorLParen,
ConstructorRParen);
- // FIXME: We shouldn't have to fake this.
- TypeSourceInfo *TInfo
- = Context.getTrivialTypeSourceInfo(AllocType, TypeLoc);
InitializedEntity Entity
- = InitializedEntity::InitializeNew(StartLoc, TInfo->getTypeLoc());
+ = InitializedEntity::InitializeNew(StartLoc, AllocType);
InitializationSequence InitSeq(*this, Entity, Kind, ConsArgs, NumConsArgs);
-
- if (!InitSeq) {
- InitSeq.Diagnose(*this, Entity, Kind, ConsArgs, NumConsArgs);
- return ExprError();
- }
-
OwningExprResult FullInit = InitSeq.Perform(*this, Entity, Kind,
move(ConstructorArgs));
if (FullInit.isInvalid())