[llvm] r303683 - Fix unused variable warnings after r303678
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Tue May 23 13:02:49 PDT 2017
Author: dsanders
Date: Tue May 23 15:02:48 2017
New Revision: 303683
URL: http://llvm.org/viewvc/llvm-project?rev=303683&view=rev
Log:
Fix unused variable warnings after r303678
This should fix lld-x86_64-darwin13
Modified:
llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
Modified: llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp?rev=303683&r1=303682&r2=303683&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp Tue May 23 15:02:48 2017
@@ -135,7 +135,7 @@ static Error isTrivialOperatorNode(const
std::string Explanation = "";
std::string Separator = "";
if (N->isLeaf()) {
- if (IntInit *Int = dyn_cast<IntInit>(N->getLeafValue()))
+ if (isa<IntInit>(N->getLeafValue()))
return Error::success();
Explanation = "Is a leaf";
@@ -1327,7 +1327,7 @@ Expected<InstructionMatcher &> GlobalISe
if (Src->isLeaf()) {
Init *SrcInit = Src->getLeafValue();
- if (IntInit *SrcIntInit = dyn_cast<IntInit>(SrcInit)) {
+ if (isa<IntInit>(SrcInit)) {
InsnMatcher.addPredicate<InstructionOpcodeMatcher>(
&Target.getInstruction(RK.getDef("G_CONSTANT")));
} else
More information about the llvm-commits
mailing list