[llvm] 7ae64e5 - [Support] Use default member initialization in ScopedPrinter (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 5 16:55:01 PST 2022
Author: Kazu Hirata
Date: 2022-02-05T16:29:28-08:00
New Revision: 7ae64e598a198234fe63e2e52fd368a2ce7a1fe4
URL: https://github.com/llvm/llvm-project/commit/7ae64e598a198234fe63e2e52fd368a2ce7a1fe4
DIFF: https://github.com/llvm/llvm-project/commit/7ae64e598a198234fe63e2e52fd368a2ce7a1fe4.diff
LOG: [Support] Use default member initialization in ScopedPrinter (NFC)
Added:
Modified:
llvm/include/llvm/Support/ScopedPrinter.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/ScopedPrinter.h b/llvm/include/llvm/Support/ScopedPrinter.h
index 6b5daf710c9fa..fb26dd6cc3a3b 100644
--- a/llvm/include/llvm/Support/ScopedPrinter.h
+++ b/llvm/include/llvm/Support/ScopedPrinter.h
@@ -107,7 +107,7 @@ class ScopedPrinter {
ScopedPrinter(raw_ostream &OS,
ScopedPrinterKind Kind = ScopedPrinterKind::Base)
- : OS(OS), IndentLevel(0), Kind(Kind) {}
+ : OS(OS), Kind(Kind) {}
ScopedPrinterKind getKind() const { return Kind; }
@@ -498,7 +498,7 @@ class ScopedPrinter {
}
raw_ostream &OS;
- int IndentLevel;
+ int IndentLevel = 0;
StringRef Prefix;
ScopedPrinterKind Kind;
};
More information about the llvm-commits
mailing list