https://github.com/Fznamznon created 
https://github.com/llvm/llvm-project/pull/100728

`IsStartOfLine` is set to false at the end of the loop.

>From e41e817050df138a0ac791c8aac0a3331c66d8df Mon Sep 17 00:00:00 2001
From: "Podchishchaeva, Mariya" <mariya.podchishcha...@intel.com>
Date: Fri, 26 Jul 2024 03:39:51 -0700
Subject: [PATCH] [NFC][clang] Avoid unnecessary assignment

`IsStartOfLine` is set to false at the end of the loop.
---
 clang/lib/Frontend/PrintPreprocessedOutput.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp 
b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
index 0592423c12eca..135dca0e6a177 100644
--- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -980,7 +980,6 @@ static void PrintPreprocessedTokens(Preprocessor &PP, Token 
&Tok,
         *Callbacks->OS << static_cast<unsigned>(*Iter);
         PrintComma = true;
       }
-      IsStartOfLine = true;
     } else if (Tok.isAnnotation()) {
       // Ignore annotation tokens created by pragmas - the pragmas themselves
       // will be reproduced in the preprocessed output.

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to