[llvm] 2caf64d - [Attributor] Avoid uninitialized memory read.
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 24 00:35:52 PDT 2023
Author: Johannes Doerfert
Date: 2023-06-24T00:35:31-07:00
New Revision: 2caf64d562d4d8ecc75a8ae6c5348dbb6f8a5dbc
URL: https://github.com/llvm/llvm-project/commit/2caf64d562d4d8ecc75a8ae6c5348dbb6f8a5dbc
DIFF: https://github.com/llvm/llvm-project/commit/2caf64d562d4d8ecc75a8ae6c5348dbb6f8a5dbc.diff
LOG: [Attributor] Avoid uninitialized memory read.
Added:
Modified:
llvm/include/llvm/Transforms/IPO/Attributor.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index 49fa9f8ad98b5..a532309aa2a7f 100644
--- a/llvm/include/llvm/Transforms/IPO/Attributor.h
+++ b/llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -5795,6 +5795,7 @@ template <Attribute::AttrKind AK>
bool hasAssumedIRAttr(Attributor &A, const AbstractAttribute &QueryingAA,
const IRPosition &IRP, DepClassTy DepClass, bool &IsKnown,
bool IgnoreSubsumingPositions = false) {
+ IsKnown = false;
switch (AK) {
#define CASE(ATTRNAME, AANAME) \
case Attribute::ATTRNAME: { \
More information about the llvm-commits
mailing list