diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-02-10 21:03:45 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-02-10 21:03:45 +0000 |
commit | 1211c41805f040f33ae5117aa6eb596aef7141e7 (patch) | |
tree | 0fd4b3941abf2c2570396506aad1160c58061a75 /llvm/utils/FileCheck/FileCheck.cpp | |
parent | faf42264e5401a1dfca95b701e5c2bf951d7f8a7 (diff) | |
download | llvm-1211c41805f040f33ae5117aa6eb596aef7141e7.zip llvm-1211c41805f040f33ae5117aa6eb596aef7141e7.tar.gz llvm-1211c41805f040f33ae5117aa6eb596aef7141e7.tar.bz2 |
[FileCheck] Fix initialized but never used static analyzer warning. NFC.
Remove superfluous variable initialization, the variable is assigned by both paths immediately afterward.
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r-- | llvm/utils/FileCheck/FileCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index 6742853..9fa16af 100644 --- a/llvm/utils/FileCheck/FileCheck.cpp +++ b/llvm/utils/FileCheck/FileCheck.cpp @@ -630,7 +630,7 @@ static void DumpAnnotatedInput(raw_ostream &OS, const FileCheckRequest &Req, // -dump-input-filter. However, in case the resulting ellipsis would occupy // more lines than the input lines and annotations it elides, buffer the // elided lines and annotations so we can print them instead. - raw_ostream *LineOS = &OS; + raw_ostream *LineOS; if ((!PrevLineInFilter || PrevLineInFilter + DumpInputContext < Line) && (NextLineInFilter == UINT_MAX || Line + DumpInputContext < NextLineInFilter)) |