[LLVMdev] Bad DataLayout ctor used

Eric Christopher echristo at gmail.com
Wed Jun 25 15:03:43 PDT 2014


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

On Wed, Jun 25, 2014 at 2:53 AM, Mingjie Xing <mingjie.xing at gmail.com> wrote:
> 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
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list