@@ -130,7 +130,6 @@ struct BuiltinTypeMethodBuilder {
130
130
StorageClass SC;
131
131
llvm::SmallVector<Param> Params;
132
132
llvm::SmallVector<Stmt *> StmtsList;
133
- llvm::SmallVector<VarDecl *> LocalVars;
134
133
135
134
// Argument placeholders, inspired by std::placeholder. These are the indices
136
135
// of arguments to forward to `callBuiltin` and other method builder methods.
@@ -145,7 +144,6 @@ struct BuiltinTypeMethodBuilder {
145
144
_2,
146
145
_3,
147
146
_4,
148
- LocalVar_0 = 64 ,
149
147
Handle = 128 ,
150
148
LastStmt
151
149
};
@@ -365,17 +363,6 @@ Expr *BuiltinTypeMethodBuilder::convertPlaceholder(PlaceHolder PH) {
365
363
}
366
364
367
365
ASTContext &AST = DeclBuilder.SemaRef .getASTContext ();
368
- if (PH >= PlaceHolder::LocalVar_0) {
369
- unsigned Index = static_cast <unsigned >(PH) -
370
- static_cast <unsigned >(PlaceHolder::LocalVar_0);
371
- assert (Index < LocalVars.size () && " local var index out of range" );
372
- VarDecl *VD = LocalVars[Index];
373
- return DeclRefExpr::Create (
374
- AST, NestedNameSpecifierLoc (), SourceLocation (), VD, false ,
375
- DeclarationNameInfo (VD->getDeclName (), SourceLocation ()), VD->getType (),
376
- VK_LValue);
377
- }
378
-
379
366
ParmVarDecl *ParamDecl = Method->getParamDecl (static_cast <unsigned >(PH));
380
367
return DeclRefExpr::Create (
381
368
AST, NestedNameSpecifierLoc (), SourceLocation (), ParamDecl, false ,
0 commit comments