[llvm-bugs] [Bug 27282] New: trunk/llvm/lib/CodeGen/StackMaps.cpp:2 * redundant condition ?

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 8 08:45:20 PDT 2016


            Bug ID: 27282
           Summary: trunk/llvm/lib/CodeGen/StackMaps.cpp:2 * redundant
                    condition ?
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

trunk/llvm/lib/CodeGen/StackMaps.cpp:523]: (style) Redundant condition:
CSInfos.empty(). '!CSInfos.empty() || (CSInfos.empty() && ConstPool.empty())'
is equivalent to '!CSInfos.empty() || ConstPool.empty()'
trunk/llvm/lib/CodeGen/StackMaps.cpp:525]: (style) Redundant condition:
CSInfos.empty(). '!CSInfos.empty() || (CSInfos.empty() && FnStackSize.empty())'
is equivalent to '!CSInfos.empty() || FnStackSize.empty()'

Source code is

  assert((!CSInfos.empty() || (CSInfos.empty() && ConstPool.empty())) &&
         "Expected empty constant pool too!");
  assert((!CSInfos.empty() || (CSInfos.empty() && FnStackSize.empty())) &&
         "Expected empty function record too!");

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160408/a51ea9db/attachment-0001.html>

More information about the llvm-bugs mailing list