[llvm] 5a0d6cd - [InstSimplify] Make sure CanUseUndef is initialized in all cases.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 9 11:50:02 PDT 2020
Author: Florian Hahn
Date: 2020-08-09T19:47:16+01:00
New Revision: 5a0d6cdbd16c80d39e3a237582f6bb47aadacb67
URL: https://github.com/llvm/llvm-project/commit/5a0d6cdbd16c80d39e3a237582f6bb47aadacb67
DIFF: https://github.com/llvm/llvm-project/commit/5a0d6cdbd16c80d39e3a237582f6bb47aadacb67.diff
LOG: [InstSimplify] Make sure CanUseUndef is initialized in all cases.
This should fix a bunch of buildbot failures.
Added:
Modified:
llvm/include/llvm/Analysis/InstructionSimplify.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/InstructionSimplify.h b/llvm/include/llvm/Analysis/InstructionSimplify.h
index 255a6bec471b..06dc195979c9 100644
--- a/llvm/include/llvm/Analysis/InstructionSimplify.h
+++ b/llvm/include/llvm/Analysis/InstructionSimplify.h
@@ -101,7 +101,7 @@ struct SimplifyQuery {
/// Controls whether simplifications are allowed to constrain the range of
/// possible values for uses of undef. If it is false, simplifications are not
/// allowed to assume a particular value for a use of undef for example.
- bool CanUseUndef;
+ bool CanUseUndef = true;
SimplifyQuery(const DataLayout &DL, const Instruction *CXTI = nullptr)
: DL(DL), CxtI(CXTI) {}
More information about the llvm-commits
mailing list