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:
9044027
)
[WebAssembly] Fix a warning for an unused variable
author
Heejin Ahn
<aheejin@gmail.com>
Wed, 10 Jun 2020 16:51:21 +0000
(09:51 -0700)
committer
Heejin Ahn
<aheejin@gmail.com>
Wed, 10 Jun 2020 17:06:28 +0000
(10:06 -0700)
`ErasedUncondBr` is used only in an `assert`, so it triggers a warning
on builds without assertions. Fixed.
llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
b/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
index
103fe97
..
ddf2d8b
100644
(file)
--- a/
llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
+++ b/
llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
@@
-679,6
+679,7
@@
void WebAssemblyCFGStackify::removeUnnecessaryInstrs(MachineFunction &MF) {
if (Analyzable && ((Cond.empty() && TBB && TBB == Cont) ||
(!Cond.empty() && FBB && FBB == Cont))) {
bool ErasedUncondBr = false;
+ (void)ErasedUncondBr;
for (auto I = EHPadLayoutPred->end(), E = EHPadLayoutPred->begin();
I != E; --I) {
auto PrevI = std::prev(I);