[LLVMbugs] [Bug 11385] New: Assertion failed: (SI.getBitWidth() == Info.Ctx.getIntWidth(E->getType()) && "Invalid evaluation result."), function Success, file ExprConstant.cpp, line 2250.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 15 10:38:16 PST 2011


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

             Bug #: 11385
           Summary: Assertion failed: (SI.getBitWidth() ==
                    Info.Ctx.getIntWidth(E->getType()) && "Invalid
                    evaluation result."), function Success, file
                    ExprConstant.cpp, line 2250.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


with r144648

pes delta-2006.08.03$ cat aslanalyze.c
 typedef unsigned long __uint64_t;
     typedef __uint64_t __uintptr_t;
        typedef __uintptr_t uintptr_t;
    typedef unsigned int UINT32;
    typedef struct acpi_namespace_node {
        char NameSeg[4];
     }
     ACPI_PARSE_OBJ_ASL;
      typedef union acpi_parse_object {
        ACPI_PARSE_OBJ_ASL Asl;
     }
     ACPI_PARSE_OBJECT;
    void ApCheckRegMethod (     ACPI_PARSE_OBJECT *Op) {
            if (!(*((UINT32 *) (uintptr_t) (("_REG"))) == *((UINT32 *)
(uintptr_t) ((&Op->Asl.NameSeg)))))     {
        }
        }
pes delta-2006.08.03$ clang -c -emit-llvm aslanalyze.c
Assertion failed: (SI.getBitWidth() == Info.Ctx.getIntWidth(E->getType()) &&
"Invalid evaluation result."), function Success, file ExprConstant.cpp, line
2250.
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.2 -emit-llvm-bc -disable-free -main-file-name
aslanalyze.c -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.15 -momit-leaf-frame-pointer -coverage-file aslanalyze.o -resource-dir
/usr/local/bin/../lib/clang/3.1 -fmodule-cache-path /var/tmp/clang-module-cache
-fdebug-compilation-dir /tmp/delta-2006.08.03 -ferror-limit 19 -fmessage-length
152 -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak
-fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o
aslanalyze.o -x c aslanalyze.c 
1.      <eof> parser at end of file
2.      aslanalyze.c:13:10: LLVM IR generation of declaration
'ApCheckRegMethod'
3.      aslanalyze.c:13:10: Generating code for declaration 'ApCheckRegMethod'
4.      aslanalyze.c:13:56: LLVM IR generation of compound statement ('{}')
clang: error: unable to execute command: Abort trap: 6 (core dumped)
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/aslanalyze-EwNywn.i
clang: note: diagnostic msg: /tmp/aslanalyze-EwNywn.sh

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