[Preprocessor] Fix warning: left and right subexpressions are identical. NFCI.
authorMichael Kruse <llvm-project@meinersbur.de>
Fri, 5 Nov 2021 05:13:49 +0000 (00:13 -0500)
committerMichael Kruse <llvm-project@meinersbur.de>
Fri, 5 Nov 2021 05:43:40 +0000 (00:43 -0500)
commit8f099d17a1bee857ada3c5af032cfcb559252024
treede1d2c158782a4dcdd69a96b772c30a5ba388997
parent96950270669acd3c342a266562ff3a41464cc0a0
[Preprocessor] Fix warning: left and right subexpressions are identical. NFCI.

This is reported by msvc as
warning C6287: redundant code: the left and right subexpressions are identical

EmittedDirectiveOnThisLine implies EmittedTokensOnThisLine
making this an NFC change. To be on the safe side and because both of
them are checked at other places as well, we continue to check both.

Compiler warning reported here:
https://reviews.llvm.org/D104601#2957333
clang/lib/Frontend/PrintPreprocessedOutput.cpp