Skip to content

Commit 64d2ea0

Browse files
committed
optimize code logic
1 parent eec3fcd commit 64d2ea0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/AST/TextNodeDumper.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,9 +738,8 @@ void TextNodeDumper::Visit(const APValue &Value, QualType Ty) {
738738
else if (const auto *BE = B.dyn_cast<const Expr *>()) {
739739
OS << BE->getStmtClassName() << ' ';
740740
dumpPointer(BE);
741-
} else if (B.is<TypeInfoLValue>()) {
741+
} else if (const auto BTI = B.dyn_cast<TypeInfoLValue>()) {
742742
OS << "TypeInfoLValue ";
743-
const auto BTI = B.get<TypeInfoLValue>();
744743
ColorScope Color(OS, ShowColors, TypeColor);
745744
BTI.print(OS, PrintPolicy);
746745
} else if (B.is<DynamicAllocLValue>()) {

0 commit comments

Comments
 (0)