summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-09-18 21:04:39 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2019-09-18 21:04:39 +0000
commitfeea722cf3dc9bcabec7350cfb3e8ac9ed19de10 (patch)
tree188bd9d65f4808577ba0df04d8285672f42fcf02
parentab8b456ce5d85d3143b04475449733b2f5e02233 (diff)
downloadbcm5719-llvm-feea722cf3dc9bcabec7350cfb3e8ac9ed19de10.tar.gz
bcm5719-llvm-feea722cf3dc9bcabec7350cfb3e8ac9ed19de10.zip
[SimplifyCFG] mergeConditionalStoreToAddress(): try to pacify MSAN
MSAN bot complains that there is use-of-uninitialized-value of this FreeStores later in IsWorthwhile(). Perhaps FreeStores needs to be stored in a vector? llvm-svn: 372262
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 5ce19b133bf..f1f16ee3da8 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -3022,7 +3022,7 @@ static bool mergeConditionalStoreToAddress(BasicBlock *PTB, BasicBlock *PFB,
return true;
};
- ArrayRef<StoreInst *> FreeStores = {PStore, QStore};
+ const SmallVector<StoreInst *, 2> FreeStores = {PStore, QStore};
if (!MergeCondStoresAggressively &&
(!IsWorthwhile(PTB, FreeStores) || !IsWorthwhile(PFB, FreeStores) ||
!IsWorthwhile(QTB, FreeStores) || !IsWorthwhile(QFB, FreeStores)))
OpenPOWER on IntegriCloud