From 2700d0d13ac28895b7271f81895ef60a7a5ebab6 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Mon, 9 Jan 2023 15:38:01 -0800 Subject: [PATCH] [AAUnderlyingObjects] Initialize an uninitialized boolean. Recent commit introducing AA for getting underluying objects of a pointer created an uninitialized boolean, which causes tests to fail when built unter asan/ubsan. This initialized that variable. --- llvm/lib/Transforms/IPO/AttributorAttributes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp index 9c67a001..00c1c3e 100644 --- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp +++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp @@ -11228,7 +11228,7 @@ struct AAUnderlyingObjectsImpl auto DoUpdate = [&](SmallSetVector &UnderlyingObjects, AA::ValueScope Scope) { - bool UsedAssumedInformation; + bool UsedAssumedInformation = false; SmallPtrSet SeenObjects; SmallVector Values; -- 2.7.4