[LLVMbugs] [Bug 7731] New: LLVM IR generation of declaration in Markzware's IOUtils.ii
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 27 16:40:13 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7731
Summary: LLVM IR generation of declaration in Markzware's
IOUtils.ii
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: james at markzware.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=5278)
--> (http://llvm.org/bugs/attachment.cgi?id=5278)
preprocessed file
the following is the error log created by compiling IOUtils.ii. file is
attached.
$ /opt/bin/clang++ IOUtils.ii
Assertion failed: (!EHBranchThroughDest), function PopCleanupBlock, file
CodeGenFunction.cpp, line 835.
0 clang 0x00000001012cb442 std::vector<llvm::sys::Path,
std::allocator<llvm::sys::Path>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::sys::Path*,
std::vector<llvm::sys::Path, std::allocator<llvm::sys::Path> > >,
llvm::sys::Path const&) + 11634
1 clang 0x00000001012cc193 std::vector<llvm::sys::Path,
std::allocator<llvm::sys::Path>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::sys::Path*,
std::vector<llvm::sys::Path, std::allocator<llvm::sys::Path> > >,
llvm::sys::Path const&) + 15043
2 libSystem.B.dylib 0x00007fff86a4e35a _sigtramp + 26
3 libSystem.B.dylib 0x000000010201b000 _sigtramp + 2069679296
4 libSystem.B.dylib 0x00007fff86ac99b4 __pthread_markcancel + 0
5 clang 0x0000000100248171
clang::SourceManager::getLocForStartOfFile(clang::FileID) const + 20145
6 clang 0x00000001002481c8
clang::SourceManager::getLocForStartOfFile(clang::FileID) const + 20232
7 clang 0x0000000100221ad8 llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 34696
8 clang 0x0000000100221de5 llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 35477
9 clang 0x000000010021eb60 llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 22544
10 clang 0x0000000100183939 std::vector<std::pair<llvm::WeakVH,
llvm::Constant*>, std::allocator<std::pair<llvm::WeakVH, llvm::Constant*> >
>::_M_insert_aux(__gnu_cxx::__normal_iterator<std::pair<llvm::WeakVH,
llvm::Constant*>*, std::vector<std::pair<llvm::WeakVH, llvm::Constant*>,
std::allocator<std::pair<llvm::WeakVH, llvm::Constant*> > > >,
std::pair<llvm::WeakVH, llvm::Constant*> const&) + 31305
11 clang 0x000000010021ef86 llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 23606
12 clang 0x0000000100221a7b llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 34603
13 clang 0x0000000100221de5 llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 35477
14 clang 0x000000010021eb60 llvm::DenseMap<clang::FieldDecl const*,
unsigned int, llvm::DenseMapInfo<clang::FieldDecl const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 22544
15 clang 0x000000010024b820
clang::SourceManager::getLocForStartOfFile(clang::FileID) const + 34144
16 clang 0x0000000100256ba7 llvm::DenseMap<clang::Decl const*,
llvm::Value*, llvm::DenseMapInfo<clang::Decl const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 40919
17 clang 0x00000001002570fa llvm::DenseMap<clang::Decl const*,
llvm::Value*, llvm::DenseMapInfo<clang::Decl const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 42282
18 clang 0x000000010025795f llvm::DenseMap<clang::Decl const*,
llvm::Value*, llvm::DenseMapInfo<clang::Decl const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 44431
19 clang 0x00000001002586f0 llvm::DenseMap<clang::Decl const*,
llvm::Value*, llvm::DenseMapInfo<clang::Decl const*>,
llvm::DenseMapInfo<llvm::Value*> >::grow(unsigned int) + 47904
20 clang 0x000000010027166c
llvm::SmallVectorTemplateBase<llvm::APInt, false>::grow(unsigned long) + 1388
21 clang 0x00000001002416db llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateConstInBoundsGEP1_64(llvm::Value*, unsigned long long, llvm::Twine
const&) + 2363
22 clang 0x0000000100284c72 llvm::DenseMap<clang::Stmt*, unsigned
int, llvm::DenseMapInfo<clang::Stmt*>, llvm::DenseMapInfo<unsigned int>
>::grow(unsigned int) + 690
23 clang 0x0000000100241fac llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateConstInBoundsGEP1_64(llvm::Value*, unsigned long long, llvm::Twine
const&) + 4620
24 clang 0x000000010002e359 llvm::DenseMap<clang::IdentifierInfo
const*, unsigned int, llvm::DenseMapInfo<clang::IdentifierInfo const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 6457
25 clang 0x00000001000028b5
26 clang 0x0000000100009474 std::vector<std::string,
std::allocator<std::string> >::operator=(std::vector<std::string,
std::allocator<std::string> > const&) + 10820
27 clang 0x0000000100000a34
Stack dump:
0. Program arguments: /opt/bin/clang -cc1 -triple x86_64-apple-darwin10.0.0
-emit-obj -mrelax-all -disable-free -main-file-name IOUtils.ii -pic-level 1
-mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -resource-dir
/opt/lib/clang/2.8 -ferror-limit 19 -fmessage-length 272 -stack-protector 1
-fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/cX/cXKleH18HyiK1CWAuQ836k++-+Y/-Tmp-/cc-cF2Tm6.o -x c++-cpp-output
IOUtils.ii
1.
/HOME/Documents/work_projects/devel/H2++Project/org/h2/util/IOUtils.cpp:394:1:
current parser token 'boost'
2.
/HOME/Documents/work_projects/devel/H2++Project/org/h2/util/IOUtils.cpp:370:46:
LLVM IR generation of declaration 'org::h2::util::IOUtils::getReader'
3.
/HOME/Documents/work_projects/devel/H2++Project/org/h2/util/IOUtils.cpp:370:46:
Generating code for declaration 'org::h2::util::IOUtils::getReader'
4.
/HOME/Documents/work_projects/devel/H2++Project/org/h2/util/IOUtils.cpp:371:1:
LLVM IR generation of compound statement ('{}')
5.
/HOME/Documents/work_projects/devel/H2++Project/org/h2/util/IOUtils.cpp:378:5:
LLVM IR generation of compound statement ('{}')
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
--
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