diff --git a/clang/lib/AST/TypeLoc.cpp b/clang/lib/AST/TypeLoc.cpp index 7e6b110bf5ed..50a512028e96 100644 --- a/clang/lib/AST/TypeLoc.cpp +++ b/clang/lib/AST/TypeLoc.cpp @@ -92,5 +92,5 @@ namespace { void TypeLoc::initializeImpl(TypeLoc TL, SourceLocation Loc) { do { TypeLocInitializer(Loc).Visit(TL); - } while (TL = TL.getNextTypeLoc()); + } while ((TL = TL.getNextTypeLoc())); }