[llvm-dev] AAResultsWrapperPass assertion in 3.9

Friedman, Eli via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 25 18:32:02 PST 2017


On 1/25/2017 6:04 PM, Welson Sun wrote:
> Thanks Eli.
>
> Ashutosh once asked the same question, and later said:
> 'createLegacyPMAAResults' can help here.
> But how should this be used to solve the assertion problem?

(The message in question is 
http://lists.llvm.org/pipermail/llvm-dev/2015-October/091128.html , for 
reference.)

The problem is that you can't require a FunctionPass from a ModulePass.  
The solution is not to do that.

createLegacyPMAAResults is an alternative way to access alias analysis 
without an AAResultsWrapperPass.  See the LLVM source code for examples 
of how to use it.

-Eli

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170125/ba92f879/attachment.html>


More information about the llvm-dev mailing list