Skip to content

Commit a7cbe5c

Browse files
committed
Sema: Remove unused variable
1 parent 13b4b03 commit a7cbe5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ConstExtract/ConstExtract.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extractCompileTimeValue(Expr *expr, const DeclContext *declContext) {
312312
return std::make_shared<FunctionCallValue>(identifier, parameters);
313313
}
314314

315-
if (auto constructorRefCall = dyn_cast<ConstructorRefCallExpr>(callExpr->getFn())) {
315+
if (isa<ConstructorRefCallExpr>(callExpr->getFn())) {
316316
std::vector<FunctionParameter> parameters =
317317
extractFunctionArguments(callExpr->getArgs(), declContext);
318318
return std::make_shared<InitCallValue>(callExpr->getType(), parameters);

0 commit comments

Comments
 (0)