[llvm] r362211 - Follow up and fix for rL362064
Sjoerd Meijer via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 01:39:34 PDT 2019
Author: sjoerdmeijer
Date: Fri May 31 01:39:34 2019
New Revision: 362211
URL: http://llvm.org/viewvc/llvm-project?rev=362211&view=rev
Log:
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.
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=362211&r1=362210&r2=362211&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp Fri May 31 01:39:34 2019
@@ -3813,10 +3813,11 @@ Error GlobalISelEmitter::importDefaultOp
if (const DagInit *DefaultDagOp = dyn_cast<DagInit>(DefaultOp)) {
if (const DefInit *DefaultDagOperator =
dyn_cast<DefInit>(DefaultDagOp->getOperator())) {
- if (DefaultDagOperator->getDef()->isSubClassOf("ValueType"))
+ if (DefaultDagOperator->getDef()->isSubClassOf("ValueType")) {
OpTyOrNone = MVTToLLT(getValueType(
DefaultDagOperator->getDef()));
DefaultOp = DefaultDagOp->getArg(0);
+ }
}
}
More information about the llvm-commits
mailing list