summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorMikael Holmen <mikael.holmen@ericsson.com>2018-09-26 06:19:08 +0000
committerMikael Holmen <mikael.holmen@ericsson.com>2018-09-26 06:19:08 +0000
commite4d61182cd1a46df2198b4353e4c20e39f991c57 (patch)
tree4ac1156cea8bdd527bfc7d3a0f1ac4f35404a7b8 /llvm/lib/CodeGen/MachineFunction.cpp
parent32e651e169e149d25a1f2b2678c849bb515fa6c2 (diff)
downloadbcm5719-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.cpp2
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 {
OpenPOWER on IntegriCloud