<html>
<head>
<base href="https://bugs.llvm.org/">
</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 failed: (getNumber() >= 0 && "cannot get label for unreachable MBB") while building chrome/android for x86_64"
href="https://bugs.llvm.org/show_bug.cgi?id=33980">33980</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failed: (getNumber() >= 0 && "cannot get label for unreachable MBB") while building chrome/android for x86_64
</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>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nicolasweber@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Nicos-MacBook-Pro:src thakis$ cat test.cc
enum CSSValueID {
CSSValueItalic,
CSSValueOblique,
CSSValueNormal,
};
class CSSIdentifierValue {
public:
template <typename T>
inline T ConvertTo() const {}
private:
CSSValueID value_id_;
};
class FontSelectionValueStyle {
};
static const FontSelectionValueStyle NormalSlopeValue() {
static FontSelectionValueStyle* normalSlopeValue = new
FontSelectionValueStyle();
return *normalSlopeValue;
}
static const FontSelectionValueStyle ItalicSlopeValue() {
static FontSelectionValueStyle* normalSlopeValue = new
FontSelectionValueStyle();
return *normalSlopeValue;
}
template <>
inline FontSelectionValueStyle CSSIdentifierValue::ConvertTo() const {
switch (value_id_) {
case CSSValueOblique:
case CSSValueItalic:
return ItalicSlopeValue();
case CSSValueNormal:
return NormalSlopeValue();
default:
break;
}
return NormalSlopeValue();
}
void testconvert() {
CSSIdentifierValue value;
value.ConvertTo<FontSelectionValueStyle>();
}
Nicos-MacBook-Pro:src thakis$ third_party/llvm-build/Release+Asserts/bin/clang
-cc1 -emit-obj -Oz -std=gnu++11 -x c++ test.cc
Assertion failed: (getNumber() >= 0 && "cannot get label for unreachable MBB"),
function getSymbol, file
/b/build/slave/mac_upload_clang/build/src/third_party/llvm/lib/CodeGen/MachineBasicBlock.cpp,
line 56.
0 clang 0x0000000103ce5c68
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1 clang 0x0000000103ce62f6
llvm::sys::PrintStackTraceOnErrorSignal(llvm::StringRef, bool) + 806
2 libsystem_platform.dylib 0x00007fffa4eb9bba _sigtramp + 26
3 libsystem_platform.dylib 0x00007fffffffffff _sigtramp + 1528063071
4 libsystem_c.dylib 0x00007fffa4d40420 abort + 129
5 libsystem_c.dylib 0x00007fffa4d07893 basename_r + 0
6 clang 0x0000000103490cff
llvm::MachineBasicBlock::getSymbol() const + 319
7 clang 0x00000001030a50fb llvm::createX86EvexToVexInsts()
+ 37131
8 clang 0x00000001030a6873 llvm::createX86EvexToVexInsts()
+ 43139
9 clang 0x00000001030a0865 llvm::createX86EvexToVexInsts()
+ 18549
10 clang 0x000000010437aaf4
llvm::AsmPrinter::EmitFunctionBody() + 5524
11 clang 0x0000000102f1a848 LLVMInitializeSystemZTargetInfo
+ 472
12 clang 0x00000001034e1074
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 180
13 clang 0x00000001037abefd
llvm::FPPassManager::runOnFunction(llvm::Function&) + 541
14 clang 0x00000001037ac173
llvm::FPPassManager::runOnModule(llvm::Module&) + 67
15 clang 0x00000001037ac6cc
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 972
16 clang 0x0000000103eace43
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions
const&, clang::CodeGenOptions const&, clang::TargetOptions const&,
clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*,
clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream,
std::__1::default_delete<llvm::raw_pwrite_stream> >) + 13555
17 clang 0x0000000104098c2c
clang::EmitObjAction::EmitObjAction(llvm::LLVMContext*) + 2092
18 clang 0x00000001049df9f2 clang::ParseAST(clang::Sema&,
bool, bool) + 466
19 clang 0x00000001042fe9ac clang::FrontendAction::Execute()
+ 76
20 clang 0x00000001042a4551
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1345
21 clang 0x000000010434a135
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4341
22 clang 0x00000001024baec8 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 1416
23 clang 0x00000001024b8ccc main + 11100
24 clang 0x00000001024b5ee4 start + 52
Stack dump:
0. Program arguments: third_party/llvm-build/Release+Asserts/bin/clang
-cc1 -emit-obj -Oz -std=gnu++11 -x c++ test.cc
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'test.cc'.
4. Running pass 'X86 Assembly Printer' on function
'@_ZNK18CSSIdentifierValue9ConvertToI23FontSelectionValueStyleEET_v'
Abort trap: 6
Nicos-MacBook-Pro:src thakis$ third_party/llvm-build/Release+Asserts/bin/clang
--version | head
clang version 6.0.0 (trunk 308728)
Target: x86_64-apple-darwin16.3.0
Thread model: posix
InstalledDir:
/Users/thakis/src/chrome/src/third_party/llvm-build/Release+Asserts/bin
Registered Targets:
aarch64 - AArch64 (little endian)
aarch64_be - AArch64 (big endian)
amdgcn - AMD GCN GPUs
arm - ARM</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>