[llvm-bugs] [Bug 32516] New: Assertion `NameRef.find_first_of(0) == StringRef::npos && "Null bytes are not allowed in names"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 3 18:30:13 PDT 2017


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

            Bug ID: 32516
           Summary: Assertion `NameRef.find_first_of(0) == StringRef::npos
                    && "Null bytes are not allowed in names"' failed.
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: peter at pcc.me.uk
                CC: llvm-bugs at lists.llvm.org

$ cat null.c
void foo() __asm__("foo\0bar");
void foo() {}
$ clang -S -o - null.c
[...]/lib/IR/Value.cpp:212: void llvm::Value::setNameImpl(const llvm::Twine &):
Assertion `NameRef.find_first_of(0) == StringRef::npos && "Null bytes are not
allowed in names"' failed.

-- 
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/20170404/0a1635d6/attachment-0001.html>


More information about the llvm-bugs mailing list