diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2019-09-18 21:04:39 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-09-18 21:04:39 +0000 |
commit | feea722cf3dc9bcabec7350cfb3e8ac9ed19de10 (patch) | |
tree | 188bd9d65f4808577ba0df04d8285672f42fcf02 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | ab8b456ce5d85d3143b04475449733b2f5e02233 (diff) | |
download | bcm5719-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
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
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))) |