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:
3661458
)
Fix an unused-variable warning in release build, NFC
author
Haojian Wu
<hokein.wu@gmail.com>
Thu, 8 Dec 2022 08:56:32 +0000
(09:56 +0100)
committer
Haojian Wu
<hokein.wu@gmail.com>
Thu, 8 Dec 2022 08:56:32 +0000
(09:56 +0100)
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
00aff15
..
e8253cb
100644
(file)
--- a/
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@
-3722,8
+3722,8
@@
struct AAIsDeadFloating : public AAIsDeadValueImpl {
// still needed.
if (auto *SI = dyn_cast<StoreInst>(I)) {
SmallSetVector<Instruction *, 8> AssumeOnlyInst;
- bool IsDead = isDeadStore(A, *SI, &AssumeOnlyInst);
-
assert(IsDead &&
"Store was assumed to be dead!");
+ assert(isDeadStore(A, *SI, &AssumeOnlyInst) &&
+
"Store was assumed to be dead!");
A.deleteAfterManifest(*I);
for (size_t i = 0; i < AssumeOnlyInst.size(); ++i) {
Instruction *AOI = AssumeOnlyInst[i];