<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]"
   href="https://llvm.org/bugs/show_bug.cgi?id=28403">28403</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM assembly language parser
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>db48x@db48x.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>While building emscripten, which uses a fork of llvm, I happened to notice the
following warning scroll by:

/home/db48x/src/emsdk_portable/clang/fastcomp/src/lib/MC/MCParser/DarwinAsmParser.cpp:
In member function ‘bool {anonymous}::DarwinAsmParser::parseVersionMin(
llvm::StringRef, llvm::SMLoc)’:
/home/db48x/src/emsdk_portable/clang/fastcomp/src/lib/MC/MCParser/DarwinAsmParser.cpp:932:3:
warning: this ‘if’ clause does not guard... [-Wmisleading-indenta
tion]
   if (Update > 255 || Update < 0)
   ^~
/home/db48x/src/emsdk_portable/clang/fastcomp/src/lib/MC/MCParser/DarwinAsmParser.cpp:934:5:
note: ...this statement, but the latter is misleadingly indented 
as if it is guarded by the ‘if’
     Lex();
     ^~~

In the llvm svn repository it's on a slightly different line,
DarwinAsmParser.cpp:962.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>