diff options
author | Mikael Holmen <mikael.holmen@ericsson.com> | 2018-09-26 06:19:08 +0000 |
---|---|---|
committer | Mikael Holmen <mikael.holmen@ericsson.com> | 2018-09-26 06:19:08 +0000 |
commit | e4d61182cd1a46df2198b4353e4c20e39f991c57 (patch) | |
tree | 4ac1156cea8bdd527bfc7d3a0f1ac4f35404a7b8 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 32e651e169e149d25a1f2b2678c849bb515fa6c2 (diff) | |
download | bcm5719-llvm-e4d61182cd1a46df2198b4353e4c20e39f991c57.tar.gz bcm5719-llvm-e4d61182cd1a46df2198b4353e4c20e39f991c57.zip |
Silence compiler warning about unused variable introduced in r343018
Since the body of the "else if" contains
// TODO
I suppose someone will need the variable again at some point, but with
-Werror the warning made it not compile at all.
llvm-svn: 343071
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 86c316245a1..ecf913fb88d 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -657,7 +657,7 @@ MCSymbol *MachineFunction::addLandingPad(MachineBasicBlock *LandingPad) { } } - } else if (const auto *CPI = dyn_cast<CatchPadInst>(FirstI)) { + } else if (isa<CatchPadInst>(FirstI)) { // TODO } else { |