From: Caroline Tice Date: Mon, 9 Jan 2023 23:38:01 +0000 (-0800) Subject: [AAUnderlyingObjects] Initialize an uninitialized boolean. X-Git-Tag: upstream/17.0.6~21632 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2700d0d13ac28895b7271f81895ef60a7a5ebab6;p=platform%2Fupstream%2Fllvm.git [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. --- 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;