[llvm-bugs] [Bug 33980] New: Assertion failed: (getNumber() >= 0 && "cannot get label for unreachable MBB") while building chrome/android for x86_64
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jul 28 09:54:13 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33980
Bug ID: 33980
Summary: Assertion failed: (getNumber() >= 0 && "cannot get
label for unreachable MBB") while building
chrome/android for x86_64
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: llvm-bugs at lists.llvm.org
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
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170728/8e95097e/attachment-0001.html>
More information about the llvm-bugs
mailing list