From fc91dc6aa2ab2356d46f1568c8fbcc9b3f6f9c9c Mon Sep 17 00:00:00 2001 From: Axel Naumann <Axel.Naumann@cern.ch> Date: Fri, 5 Mar 2021 21:57:03 +0100 Subject: [PATCH] [cling] Put `else` back to handle CastExpr of DeclRefExpr --- interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp index ef55c3a7219..889eb585aea 100644 --- a/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp +++ b/interpreter/cling/lib/Interpreter/ForwardDeclPrinter.cpp @@ -1228,7 +1228,7 @@ namespace cling { Expr* TAExpr = TA.getAsExpr(); if (CastExpr* CastExpr = dyn_cast<clang::CastExpr>(TAExpr)) TAExpr = CastExpr->getSubExpr(); - else if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(TAExpr)) { + if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(TAExpr)) { Visit(DRE->getFoundDecl()); if (m_SkipFlag) { return; -- GitLab