https://bugs.llvm.org/show_bug.cgi?id=36074

            Bug ID: 36074
           Summary: undefined behavior in SelectionDAGAddressAnalysis.cpp
           Product: new-bugs
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: yannlaiglecha...@gmail.com
                CC: llvm-bugs@lists.llvm.org

Created attachment 19738
  --> https://bugs.llvm.org/attachment.cgi?id=19738&action=edit
reduced code

With the attached reduced file:

> llc -O1 SelectionDAG_UB.ll
[...]lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp:23:22:
runtime error: signed integer overflow: 7124803381091165632 -
-7949118599238474896 cannot be represented in type 'long long'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
[...]lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp:23:22 in 
Stack dump:
0.      Program arguments: llc -O1 SelectionDAG_UB.ll
1.      Running pass 'Function Pass Manager' on module 'SelectionDAG_UB.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@Test'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to