[llvm-bugs] [Bug 38615] New: clang crashes when building opencflite

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 17 11:17:35 PDT 2018


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: unassignedclangbugs at nondot.org
          Reporter: manojgupta at google.com
                CC: llozano at chromium.org, llvm-bugs at lists.llvm.org,
                    manojgupta at google.com, ruiu at google.com

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180817/3d9c4b68/attachment.html>


More information about the llvm-bugs mailing list