Ramkumar Ramachandra
2015-Feb-09 03:38 UTC
[LLVMdev] DataLayout missing in isDereferenceablePointer()
Hi, I've been debugging this issue for many hours, and would like a sanity check. The issue is that DL (DataLayout) is nullptr inside isDereferenceablePointer() no matter what I try. Why is DataLayout ever nullptr (shouldn't it get defaults?), and what should I do to make it non-nullptr? Thanks. Ram
Eric Christopher
2015-Feb-09 06:08 UTC
[LLVMdev] DataLayout missing in isDereferenceablePointer()
Have you tried passing a non-null DataLayout into isDereferenceablePointer? How are you trying to call it? Do you have a DataLayout? -eric On Sun Feb 08 2015 at 7:44:36 PM Ramkumar Ramachandra <artagnon at gmail.com> wrote:> Hi, > > I've been debugging this issue for many hours, and would like a sanity > check. The issue is that DL (DataLayout) is nullptr inside > isDereferenceablePointer() no matter what I try. Why is DataLayout > ever nullptr (shouldn't it get defaults?), and what should I do to > make it non-nullptr? > > Thanks. > > Ram > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150209/bc309dec/attachment.html>
Ramkumar Ramachandra
2015-Feb-09 06:14 UTC
[LLVMdev] DataLayout missing in isDereferenceablePointer()
Eric Christopher wrote:> How are you trying to call it? Do you have a DataLayout?In test/Analysis/ValueTracking/memory-dereferenceable.ll, just change byval to dereferenceable(8), and %dparam won't match (see lib/IR/Value.cpp:521 for the logic that is supposed to fire). How do I get it to pass? I tried introducing a target-triple and target-datalayout, but it didn't help.