From e4d61182cd1a46df2198b4353e4c20e39f991c57 Mon Sep 17 00:00:00 2001 From: Mikael Holmen Date: Wed, 26 Sep 2018 06:19:08 +0000 Subject: [PATCH] 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 --- llvm/lib/CodeGen/MachineFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 86c3162..ecf913f 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(FirstI)) { + } else if (isa(FirstI)) { // TODO } else { -- 2.7.4