[llvm-bugs] [Bug 33679] [AArch64] Unexpected 'brk' in function that has 'int' return type and no explicit 'return' statement

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 3 11:18:22 PDT 2017


Anton Korobeynikov <anton at korobeynikov.info> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |anton at korobeynikov.info
         Resolution|---                         |INVALID

--- Comment #1 from Anton Korobeynikov <anton at korobeynikov.info> ---
You code has undefined behavior. The compiler inserts the break instruction
(brk on aarch64, ud2 on x86) to mark the unreachable code.

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/20170703/536aeb92/attachment-0001.html>

More information about the llvm-bugs mailing list