diff options
| author | John McCall <rjmccall@apple.com> | 2010-10-12 00:20:44 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-10-12 00:20:44 +0000 |
| commit | 36e7fe31d4c7d515ea24e61a570b255133262771 (patch) | |
| tree | 2e7fdb3b5afcd54bd48cafc650bb66fa97d263f5 /clang/lib/AST/ASTContext.cpp | |
| parent | cb85497ddf082320ca8a62cf068d9120d26320f1 (diff) | |
| download | bcm5719-llvm-36e7fe31d4c7d515ea24e61a570b255133262771.tar.gz bcm5719-llvm-36e7fe31d4c7d515ea24e61a570b255133262771.zip | |
Add some infrastructure for dealing with expressions of 'placeholder' type,
i.e. expressions with an internally-convenient type which should not be
appearing in generally valid, complete ASTs.
llvm-svn: 116281
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index e25429bfb93..c7b014efb5c 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -329,9 +329,6 @@ void ASTContext::InitBuiltinTypes() { else // C99 Char32Ty = getFromTargetType(Target.getChar32Type()); - // Placeholder type for functions. - InitBuiltinType(OverloadTy, BuiltinType::Overload); - // Placeholder type for type-dependent expressions whose type is // completely unknown. No code should ever check a type against // DependentTy and users should never see it; however, it is here to @@ -339,9 +336,12 @@ void ASTContext::InitBuiltinTypes() { // expressions. InitBuiltinType(DependentTy, BuiltinType::Dependent); + // Placeholder type for functions. + InitBuiltinType(OverloadTy, BuiltinType::Overload); + // Placeholder type for C++0x auto declarations whose real type has // not yet been deduced. - InitBuiltinType(UndeducedAutoTy, BuiltinType::UndeducedAuto); + InitBuiltinType(UndeducedAutoTy, BuiltinType::UndeducedAuto); // C99 6.2.5p11. FloatComplexTy = getComplexType(FloatTy); |

