Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad TargetData ctor used #1898

Closed
nlewycky opened this issue Jun 23, 2007 · 4 comments
Closed

Bad TargetData ctor used #1898

nlewycky opened this issue Jun 23, 2007 · 4 comments
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead llvm:core

Comments

@nlewycky
Copy link
Contributor

Bugzilla Link 1526
Resolution FIXED
Resolved on Feb 22, 2010 12:43
Version trunk
OS All

Extended Description

This might be a PassManager bug:

$ opt -analyze -inline b.bc
opt: /home/nicholas/llvm/include/llvm/Target/TargetData.h:113:
llvm::TargetData::TargetData(): Assertion `0 && "ERROR: Bad TargetData ctor
used. " "Tool did not specify a TargetData to use?"' failed.
llvm/Debug/bin/opt((anonymous namespace)::PrintStackTrace()+0x1a)[0x8648c6a]
llvm/Debug/bin/opt((anonymous namespace)::SignalHandler(int)+0x112)[0x8648f30]
[0xffffe500]
Aborted

@lattner
Copy link
Collaborator

lattner commented Jun 26, 2007

Hi nicholas, can you plz attach the .bc file? Thanks,

-Chris

@lattner
Copy link
Collaborator

lattner commented Jun 26, 2007

actually, this repros with any .bc file. It looks like some sort of passmgr-related thing:

#​0 0x9004822c in kill ()
#​1 0x9012e7b4 in abort ()
#​2 0x94c840b0 in __eprintf ()
#​3 0x0046c534 in llvm::TargetData::TargetData (this=0x4e03850) at /Volumes/ProjectsDisk/cvs/
llvm/include/llvm/Target/TargetData.h:112
#​4 0x0046c560 in llvm::callDefaultCtorllvm::TargetData () at /Volumes/ProjectsDisk/cvs/llvm/
include/llvm/PassSupport.h:161
#​5 0x004e4684 in llvm::PassInfo::createPass (this=0x57358c) at PassManager.cpp:98
#​6 0x001550c4 in llvm::PMTopLevelManager::schedulePass (this=0x4e0370c, P=0x4e03630) at
PassManager.cpp:433
#​7 0x004ea8d0 in llvm::FunctionPassManagerImpl::add (this=0x4e036a0, P=0x4e03630) at
PassManager.cpp:132
#​8 0x001592f8 in llvm::MPPassManager::addLowerLevelRequiredPass (this=0x4e034a0, P=0x4e035f0,
RequiredPass=0x4e03630) at PassManager.cpp:1242
#​9 0x0015848c in llvm::PMDataManager::add (this=0x4e034b8, P=0x4e035f0, ProcessAnalysis=true)
at PassManager.cpp:729
#​10 0x001585d8 in llvm::ModulePass::assignPassManager (this=0x4e035f0, PMS=@0x4e02f40,
PreferredType=PMT_Unknown) at PassManager.cpp:1416
#​11 0x004f2be8 in llvm::PassManagerImpl::addTopLevelPass (this=0x4e02ed0, P=0x4e035f0) at
PassManager.cpp:294
#​12 0x001551bc in llvm::PMTopLevelManager::schedulePass (this=0x4e02f3c, P=0x4e035f0) at
PassManager.cpp:445
#​13 0x004ea88c in llvm::PassManagerImpl::add (this=0x4e02ed0, P=0x4e035f0) at PassManager.cpp:
270
#​14 0x0015520c in llvm::PassManager::add (this=0xbffff4c8, P=0x4e035f0) at PassManager.cpp:1306
#​15 0x00004cc8 in main (argc=5, argv=0xbffff608) at opt.cpp:346

-Chris

@llvmbot
Copy link
Collaborator

llvmbot commented Jun 28, 2007

Need CallGraphSCCPassPrinter

@llvmbot
Copy link
Collaborator

llvmbot commented Jun 29, 2007

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead llvm:core
Projects
None yet
Development

No branches or pull requests

3 participants