diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-08-19 01:28:28 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-08-19 01:28:28 +0000 |
commit | e8661906d49ef6c9694a9cc845ca62a85dbc016d (patch) | |
tree | 4e57e7e6580846b549c332461ea44ad5c3f322e6 /lib/Sema/SemaExprObjC.cpp | |
parent | 1bb8a45f7386a23871598d05141a07af03067925 (diff) |
Use Sema's LocInfoType to pass and preserve type source info through the Parser.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprObjC.cpp')
-rw-r--r-- | lib/Sema/SemaExprObjC.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index 553a32f4c9..3b28fae83c 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/lib/Sema/SemaExprObjC.cpp @@ -120,7 +120,8 @@ Sema::ExprResult Sema::ParseObjCEncodeExpression(SourceLocation AtLoc, SourceLocation LParenLoc, TypeTy *ty, SourceLocation RParenLoc) { - QualType EncodedType = QualType::getFromOpaquePtr(ty); + // FIXME: Preserve type source info ? + QualType EncodedType = GetTypeFromParser(ty); return BuildObjCEncodeExpression(AtLoc, EncodedType, RParenLoc); } |