[llvm] a867f32 - [Transforms] Use default member initialization in EscapeEnumerator (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 5 21:39:53 PST 2022
Author: Kazu Hirata
Date: 2022-02-05T21:39:19-08:00
New Revision: a867f32c5f40a32131dfb553ae416f40e092a20a
URL: https://github.com/llvm/llvm-project/commit/a867f32c5f40a32131dfb553ae416f40e092a20a
DIFF: https://github.com/llvm/llvm-project/commit/a867f32c5f40a32131dfb553ae416f40e092a20a.diff
LOG: [Transforms] Use default member initialization in EscapeEnumerator (NFC)
Added:
Modified:
llvm/include/llvm/Transforms/Utils/EscapeEnumerator.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Utils/EscapeEnumerator.h b/llvm/include/llvm/Transforms/Utils/EscapeEnumerator.h
index bb5c6f04dd0ce..3d8447e9bf233 100644
--- a/llvm/include/llvm/Transforms/Utils/EscapeEnumerator.h
+++ b/llvm/include/llvm/Transforms/Utils/EscapeEnumerator.h
@@ -32,7 +32,7 @@ class EscapeEnumerator {
Function::iterator StateBB, StateE;
IRBuilder<> Builder;
- bool Done;
+ bool Done = false;
bool HandleExceptions;
DomTreeUpdater *DTU;
@@ -41,8 +41,7 @@ class EscapeEnumerator {
EscapeEnumerator(Function &F, const char *N = "cleanup",
bool HandleExceptions = true, DomTreeUpdater *DTU = nullptr)
: F(F), CleanupBBName(N), StateBB(F.begin()), StateE(F.end()),
- Builder(F.getContext()), Done(false),
- HandleExceptions(HandleExceptions), DTU(DTU) {}
+ Builder(F.getContext()), HandleExceptions(HandleExceptions), DTU(DTU) {}
IRBuilder<> *Next();
};
More information about the llvm-commits
mailing list