[LLVMbugs] [Bug 11780] New: using assert in generated files embeds the build dir in the output

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 16 20:32:34 PST 2012


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

             Bug #: 11780
           Summary: using assert in generated files embeds the build dir
                    in the output
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


while debugging a bootstrap failure I noticed that the the build dir name was
included in some object files. The problem is that an gets expanded to

((!isalignmentExpr) ? static_cast<void> (0) : __assert_fail
("!isalignmentExpr",
"/home/espindola/llvm/build/tools/clang/lib/AST/../../include/clang/AST/Attrs.inc",
161, __PRETTY_FUNCTION__));

I am not sure what is the best way to fix this. Maybe we just need another
macro, maybe the code with the assert should be factored to a .cpp file.

-- 
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