https://bugs.llvm.org/show_bug.cgi?id=38615
Bug ID: 38615
Summary: clang crashes when building opencflite
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Created attachment 20735
--> https://bugs.llvm.org/attachment.cgi?id=20735&action=edit
Preprocessed file
Clang is crashing when building opencflite
(https://github.com/nevali/opencflite)
The crash happens at this line:
lib/CodeGen/CodeGenModule.cpp
llvm::GlobalValue *GV = cast<llvm::GlobalValue>(
CreateRuntimeVariable(Ty, "__CFConstantStringClassReference"));
The source code already has a variable with the name
__CFConstantStringClassReference.
https://github.com/nevali/opencflite/blob/03999700cf3b79975ae2f2e5f4100ea7096acb3a/CFInternal.h#L364
extern int __CFConstantStringClassReference[];
I am not sure if this a clang bug or an issue in opencflite by using a variable
of name __CFConstantStringClassReference. But clang should not crash on it.
--
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