[llvm-dev] Commit r362064 causing warnings

Bill Wendling via llvm-dev llvm-dev at lists.llvm.org
Thu May 30 14:11:07 PDT 2019


Sjoerd Meijer,

This commit is causing a build warning that seem legit.

http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20190527/657069.html

/usr/local/google/home/morbo/llvm/llvm.src/utils/TableGen/GlobalISelEmitter.cpp:
In member function ‘llvm::Error
{anonymous}::GlobalISelEmitter::importDefaultOperandRenderers({anonymous}::action_iterator,
{anonymous}::RuleMatcher&, {anonymous}::BuildMIAction&, llvm::DagInit*)
const’:
/usr/local/google/home/morbo/llvm/llvm.src/utils/TableGen/GlobalISelEmitter.cpp:3816:9:
warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
         if (DefaultDagOperator->getDef()->isSubClassOf("ValueType"))
         ^~
/usr/local/google/home/morbo/llvm/llvm.src/utils/TableGen/GlobalISelEmitter.cpp:3819:11:
note: ...this statement, but the latter is misleadingly indented as if it
were guarded by the ‘if’
           DefaultOp = DefaultDagOp->getArg(0);
           ^~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190530/4fe8eb3e/attachment-0001.html>


More information about the llvm-dev mailing list