https://llvm.org/bugs/show_bug.cgi?id=27090
Bug ID: 27090
Summary: SIGSEGV compiling LLVM IR with declared intrinsic
Product: libraries
Version: 3.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Bitcode Reader
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 16105
--> https://llvm.org/bugs/attachment.cgi?id=16105&action=edit
clang's crash backtrace
The following LLVM IR, compiled with `clang crash.ll`, results in a
segmentation fault.
Steps to reproduce:
1) Place this code in 'crash.ll':
declare i64 @llvm.read_register(metadata)
define i32 @main() {
call i64 @llvm.read_register(metadata !"rsp")
ret i32 0
}
2) Compile the code with `clang crash.ll`.
3) Clang segfaults, with the attached backtrace.
Clang should either fail compilation with an error or compilation should
succeed.
Clang and llvm-libs were built on Fri 15 Jan 2016 and were downloaded
precompiled from Arch Linux's repositories.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs