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

           Summary: Crash in IRGen with invalid asm
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Testcase:
void x()
{
    int a;
    __asm__ (
        "%0 %1"
        :"=r"(a));
}

Currently crashes with the following:
clang: /home/eli/llvm/tools/clang/lib/CodeGen/CGStmt.cpp:768: std::string
ConvertAsmString(const clang::AsmStmt&, bool&): Assertion `0 && "Operand number
out of range!"' failed.

I think this issue should be caught by Sema.


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

Reply via email to