<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Assertion `index < Weights.size() && "Not a current successor!"' failed"
   href="http://llvm.org/bugs/show_bug.cgi?id=18752">18752</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `index < Weights.size() && "Not a current successor!"' failed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: ARM
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>eugeni.stepanov@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=12020" name="attach_12020" title="reproducer">attachment 12020</a> <a href="attachment.cgi?id=12020&action=edit" title="reproducer">[details]</a></span>
reproducer

$ clang++ -target arm-linux-androideabi -O3 -fno-exceptions -S 1.ii

clang-3.5: ../lib/CodeGen/MachineBasicBlock.cpp:1149:
llvm::MachineBasicBlock::const_weight_iterator
llvm::MachineBasicBlock::getWeightIterator(llvm::MachineBasicBlock::const_succ_iterator)
const: Assertion `index < Weights.size() && "Not a current successor!"' failed.
0  clang-3.5       0x0000000000b7d9d2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang-3.5       0x0000000000b7d5f4
2  libpthread.so.0 0x00007fe219e68cb0
3  libc.so.6       0x00007fe2190a6425 gsignal + 53
4  libc.so.6       0x00007fe2190a9b8b abort + 379
5  libc.so.6       0x00007fe21909f0ee
6  libc.so.6       0x00007fe21909f192
7  clang-3.5       0x0000000000f41b7a
8  clang-3.5       0x0000000000f41b95
llvm::MachineBasicBlock::getSuccWeight(__gnu_cxx::__normal_iterator<llvm::MachineBasicBlock*
const*, std::vector<llvm::MachineBasicBlock*,
std::allocator<llvm::MachineBasicBlock*> > >) const + 21
9  clang-3.5       0x0000000000f474af
llvm::MachineBranchProbabilityInfo::getEdgeWeight(llvm::MachineBasicBlock
const*, __gnu_cxx::__normal_iterator<llvm::MachineBasicBlock* const*,
std::vector<llvm::MachineBasicBlock*, std::allocator<llvm::MachineBasicBlock*>
<span class="quote">> >) const + 15</span >
10 clang-3.5       0x0000000000f4771f
llvm::MachineBranchProbabilityInfo::getEdgeWeight(llvm::MachineBasicBlock
const*, llvm::MachineBasicBlock const*) const + 255
11 clang-3.5       0x0000000000f236af
12 clang-3.5       0x0000000000f27645
13 clang-3.5       0x00000000008fb01f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 655
14 clang-3.5       0x00000000008fb4eb
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
15 clang-3.5       0x00000000008fb82d
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 797
16 clang-3.5       0x000000000112c3ee
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
2878
17 clang-3.5       0x0000000001127cf6
18 clang-3.5       0x00000000015a25db clang::ParseAST(clang::Sema&, bool, bool)
+ 507
19 clang-3.5       0x000000000112870b clang::CodeGenAction::ExecuteAction() +
59
20 clang-3.5       0x0000000000cc38e9 clang::FrontendAction::Execute() + 249
21 clang-3.5       0x0000000000ca50f0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 352
22 clang-3.5       0x0000000000d4c804
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1860
23 clang-3.5       0x000000000062b128 cc1_main(char const**, char const**, char
const*, void*) + 936
24 clang-3.5       0x000000000060e31a main + 666
25 libc.so.6       0x00007fe21909176d __libc_start_main + 237
26 clang-3.5       0x0000000000627c49
Stack dump:
0.      Program arguments: /code/llvm/build0/bin/clang-3.5 -cc1 -triple
armv4t--linux-androideabi -S -disable-free -main-file-name 1.ii
-mrelocation-model pic -pic-level 1 -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu arm7tdmi
-target-feature +soft-float -target-feature +soft-float-abi -target-feature
-neon -target-abi aapcs-linux -msoft-float -mfloat-abi soft -coverage-file
/code/llvm/z/1.s -resource-dir /code/llvm/build0/bin/../lib/clang/3.5 -O3
-fdeprecated-macro -fdebug-compilation-dir /code/llvm/z -ferror-limit 19
-fmessage-length 116 -mstackrealign -fno-signed-char -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o 1.s -x c++-cpp-output 1.ii 


C++ source attached. Sorry, it is not fully minimized (creduce gets stuck on
all the templates), but the IR is pretty compact.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>