[LLVMbugs] [Bug 14932] New: Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create, file Instructions.cpp, line 2285.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 11 21:21:54 PST 2013


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

             Bug #: 14932
           Summary: Assertion failed: (castIsValid(op, S, Ty) && "Invalid
                    cast!"), function Create, file Instructions.cpp, line
                    2285.
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rhahn at stunned.de
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9866
  --> http://llvm.org/bugs/attachment.cgi?id=9866
delta'd test

The attached delta'd test produces the following when compiled with clang
version 3.3 (trunk 172300):

Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create,
file Instructions.cpp, line 2285.
0  libLLVM-3.3svn.dylib 0x0000000102e9b165 llvm::sys::PrintStackTrace(__sFILE*)
+ 37
1  libLLVM-3.3svn.dylib 0x0000000102e9b6e9 SignalHandler(int) + 713
2  libsystem_c.dylib    0x00007fff96f678ea _sigtramp + 26
3  libsystem_c.dylib    000000000000000000 _sigtramp + 18446603337983428400
4  libLLVM-3.3svn.dylib 0x0000000102e9b406 abort + 22
5  libLLVM-3.3svn.dylib 0x0000000102e9b3c5 __assert_rtn + 53
6  libLLVM-3.3svn.dylib 0x00000001029071c1
llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*,
llvm::Twine const&, llvm::Instruction*) + 2193
7  libLLVM-3.3svn.dylib 0x0000000102f3ed9c (anonymous
namespace)::InnerLoopVectorizer::vectorize((anonymous
namespace)::LoopVectorizationLegality*) + 4268
8  libLLVM-3.3svn.dylib 0x0000000102f3a9c0 (anonymous
namespace)::LoopVectorize::runOnLoop(llvm::Loop*, llvm::LPPassManager&) + 8736
9  libLLVM-3.3svn.dylib 0x00000001025c4756
llvm::LPPassManager::runOnFunction(llvm::Function&) + 726
10 libLLVM-3.3svn.dylib 0x0000000102922976
llvm::FPPassManager::runOnFunction(llvm::Function&) + 310
11 libLLVM-3.3svn.dylib 0x000000010304adb3 (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&) + 1907
12 libLLVM-3.3svn.dylib 0x0000000102922ef8
llvm::MPPassManager::runOnModule(llvm::Module&) + 376
13 libLLVM-3.3svn.dylib 0x00000001029234f6
llvm::PassManagerImpl::run(llvm::Module&) + 294
14 libLLVM-3.3svn.dylib 0x00000001029236ed
llvm::PassManager::run(llvm::Module&) + 13
15 clang                0x000000010123f8d8
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5480
16 clang                0x00000001013248bc
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 620
17 clang                0x0000000101360f46 clang::ParseAST(clang::Sema&, bool,
bool) + 518
18 clang                0x00000001013239b5
clang::CodeGenAction::ExecuteAction() + 1221
19 clang                0x000000010111501d clang::FrontendAction::Execute() +
109
20 clang                0x00000001010f50ef
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1007
21 clang                0x00000001010bdaa4
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3572
22 clang                0x00000001010b53ae cc1_main(char const**, char const**,
char const*, void*) + 862
23 clang                0x00000001010b9904 main + 708
24 libdyld.dylib        0x00007fff93ae37e1 start + 0
25 libdyld.dylib        0x000000000000002c start + 18446603338038495307
Stack dump:
0.    Program arguments: /opt/local/libexec/llvm-3.3/bin/clang -cc1 -triple
x86_64-apple-macosx10.8.0 -emit-obj -disable-free -main-file-name
spinimages.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 134.9
-stdlib=libc++ -O3 -Wno-c++11-narrowing -std=c++11 -fdeprecated-macro
-ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.8.0 -fobjc-dispatch-method=mixed
-fobjc-default-synthesize-properties -fencode-extended-block-signature
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -backend-option
-vectorize-loops -x c++ spinimages-ARWrPP.cpp 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'CallGraph Pass Manager' on module 'spinimages-ARWrPP.cpp'.
4.    Running pass 'Loop Pass Manager' on function
'@_ZN2cv3__14iotaINSt3__111__wrap_iterIPiEEiEEvT_S6_T0_'
5.    Running pass 'Loop Vectorization' on basic block '%for.body'

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