Bad DataLayout ctor used

Hello,

When I run such a command,

  $ opt -disable-output -bounds-checking < /dev/null

I got an error message,

  LLVM ERROR: Bad DataLayout ctor used. Tool did not specify a
DataLayout to use?

Is it a bug? Or what should I do, if I want to run a pass in opt,
which requires DataLayout?

Best regards,
Mingjie

You'll need to specify a triple/target to be used for it. Probably
want to just put one in the module. Take a look at some of the
testcases that use opt for guidelines.

-eric