[LLVMbugs] [Bug 17486] New: llvm-tblgen crashes if compiled with MTd on Win32 VC 2005

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Oct 6 03:37:39 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=17486

            Bug ID: 17486
           Summary: llvm-tblgen crashes if compiled with MTd on Win32 VC
                    2005
           Product: new-bugs
           Version: 3.2
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: peter at uformia.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11341
  --> http://llvm.org/bugs/attachment.cgi?id=11341&action=edit
Patch that fixes the error

llvm-tblgen triggers a debug exception (and thus crash) if compiled with MTd
(static link debug runtime) on Win32 with VS2005, as a 32b executable.

It is caused by CodeGenInstruction.cpp line 411 , where
Selection.split('|').first is null. Attempting to append this to a std::string
triggers a debug check.

The attached change avoids the append if the above value is null.

NOTE: Tested on LLVM 3.3, but there's no 3.3 in the version list.

-- 
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/20131006/98de5f76/attachment.html>


More information about the llvm-bugs mailing list