-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[Scalar] Use default member initialization in OverflowTracking (NFC) #138412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Scalar] Use default member initialization in OverflowTracking (NFC) #138412
Conversation
@llvm/pr-subscribers-llvm-transforms Author: Kazu Hirata (kazutakahirata) ChangesFull diff: https://github.com/llvm/llvm-project/pull/138412.diff 1 Files Affected:
diff --git a/llvm/include/llvm/Transforms/Scalar/Reassociate.h b/llvm/include/llvm/Transforms/Scalar/Reassociate.h
index 6d56961a71019..23b70164d96a4 100644
--- a/llvm/include/llvm/Transforms/Scalar/Reassociate.h
+++ b/llvm/include/llvm/Transforms/Scalar/Reassociate.h
@@ -65,16 +65,14 @@ struct Factor {
};
struct OverflowTracking {
- bool HasNUW;
- bool HasNSW;
- bool AllKnownNonNegative;
- bool AllKnownNonZero;
+ bool HasNUW = true;
+ bool HasNSW = true;
+ bool AllKnownNonNegative = true;
+ bool AllKnownNonZero = true;
// Note: AllKnownNonNegative can be true in a case where one of the operands
// is negative, but one the operators is not NSW. AllKnownNonNegative should
// not be used independently of HasNSW
- OverflowTracking()
- : HasNUW(true), HasNSW(true), AllKnownNonNegative(true),
- AllKnownNonZero(true) {}
+ OverflowTracking() = default;
};
class XorOpnd;
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/23/builds/9972 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/8730 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/10800 Here is the relevant piece of the build log for the reference
|
No description provided.