projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab658a4
)
[Attributor] Fix a break in relase build caused by
author
Haojian Wu
<hokein.wu@gmail.com>
Thu, 8 Dec 2022 20:07:58 +0000
(21:07 +0100)
committer
Haojian Wu
<hokein.wu@gmail.com>
Thu, 8 Dec 2022 20:07:58 +0000
(21:07 +0100)
61318fa5c764d6af60baeb1c00d793f1bd95f5ea
.
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index
e8253cb
..
f0d006f
100644
(file)
--- a/
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@
-3722,8
+3722,9
@@
struct AAIsDeadFloating : public AAIsDeadValueImpl {
// still needed.
if (auto *SI = dyn_cast<StoreInst>(I)) {
SmallSetVector<Instruction *, 8> AssumeOnlyInst;
- assert(isDeadStore(A, *SI, &AssumeOnlyInst) &&
- "Store was assumed to be dead!");
+ bool IsDead = isDeadStore(A, *SI, &AssumeOnlyInst);
+ (void)IsDead;
+ assert(IsDead && "Store was assumed to be dead!");
A.deleteAfterManifest(*I);
for (size_t i = 0; i < AssumeOnlyInst.size(); ++i) {
Instruction *AOI = AssumeOnlyInst[i];