Skip to content

Commit b487a54

Browse files
committed
more cleanup after merge
1 parent c7b35b9 commit b487a54

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ struct BuiltinTypeMethodBuilder {
130130
StorageClass SC;
131131
llvm::SmallVector<Param> Params;
132132
llvm::SmallVector<Stmt *> StmtsList;
133-
llvm::SmallVector<VarDecl *> LocalVars;
134133

135134
// Argument placeholders, inspired by std::placeholder. These are the indices
136135
// of arguments to forward to `callBuiltin` and other method builder methods.
@@ -145,7 +144,6 @@ struct BuiltinTypeMethodBuilder {
145144
_2,
146145
_3,
147146
_4,
148-
LocalVar_0 = 64,
149147
Handle = 128,
150148
LastStmt
151149
};
@@ -365,17 +363,6 @@ Expr *BuiltinTypeMethodBuilder::convertPlaceholder(PlaceHolder PH) {
365363
}
366364

367365
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-
379366
ParmVarDecl *ParamDecl = Method->getParamDecl(static_cast<unsigned>(PH));
380367
return DeclRefExpr::Create(
381368
AST, NestedNameSpecifierLoc(), SourceLocation(), ParamDecl, false,

0 commit comments

Comments
 (0)