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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to