[llvm] dae52dd - [Attributor][FIX] Initialize variable.
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 22:48:17 PDT 2023
Author: Johannes Doerfert
Date: 2023-07-17T22:48:03-07:00
New Revision: dae52dd07d633673fe3ff2a6b5e5c71f9affc470
URL: https://github.com/llvm/llvm-project/commit/dae52dd07d633673fe3ff2a6b5e5c71f9affc470
DIFF: https://github.com/llvm/llvm-project/commit/dae52dd07d633673fe3ff2a6b5e5c71f9affc470.diff
LOG: [Attributor][FIX] Initialize variable.
Added:
Modified:
llvm/lib/Transforms/IPO/Attributor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index 1ca1f82260df4a..762706c5dab1d8 100644
--- a/llvm/lib/Transforms/IPO/Attributor.cpp
+++ b/llvm/lib/Transforms/IPO/Attributor.cpp
@@ -1923,7 +1923,7 @@ bool Attributor::checkForAllReturnedValues(function_ref<bool(Value &)> Pred,
if (!AssociatedFunction)
return false;
- bool UsedAssumedInformation;
+ bool UsedAssumedInformation = false;
SmallVector<AA::ValueAndContext> Values;
if (!getAssumedSimplifiedValues(
IRPosition::returned(*AssociatedFunction), &QueryingAA, Values, S,
More information about the llvm-commits
mailing list