[LLVMbugs] [Bug 15113] New: FileCheck should properly report errors rather than just using assert()

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 29 12:22:12 PST 2013


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

             Bug #: 15113
           Summary: FileCheck should properly report errors rather than
                    just using assert()
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: grosbach at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


For example, in attern::FindRegexVarEnd() we have:
        case ']':                                                               
          assert(BracketDepth > 0 && "Invalid regex");                          
          BracketDepth--;                                                       
          break;

That's from expressions like [[[NAME]], r0]. The parser gets confused by the
[[[ and goes south. The error should be a real diagnostic, not an assertion
failure.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list