From: Sjoerd Meijer Date: Fri, 31 May 2019 08:39:34 +0000 (+0000) Subject: Follow up and fix for rL362064 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8f9c8814e927349395a7af0e6981d73174ff3ad;p=llvm Follow up and fix for rL362064 Fix the misleadingly indentation introduced in rL362064. This will get rid of the compiler warning, and it was actually a bug. This change will be used and tested in D62669. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362211 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/GlobalISelEmitter.cpp b/utils/TableGen/GlobalISelEmitter.cpp index ad13b33f8b7..4ec7a819278 100644 --- a/utils/TableGen/GlobalISelEmitter.cpp +++ b/utils/TableGen/GlobalISelEmitter.cpp @@ -3813,10 +3813,11 @@ Error GlobalISelEmitter::importDefaultOperandRenderers( if (const DagInit *DefaultDagOp = dyn_cast(DefaultOp)) { if (const DefInit *DefaultDagOperator = dyn_cast(DefaultDagOp->getOperator())) { - if (DefaultDagOperator->getDef()->isSubClassOf("ValueType")) + if (DefaultDagOperator->getDef()->isSubClassOf("ValueType")) { OpTyOrNone = MVTToLLT(getValueType( DefaultDagOperator->getDef())); DefaultOp = DefaultDagOp->getArg(0); + } } }