[PATCH] D63703: [stack-safety] Refactoring StackSafetyAnalysis to be accsessible from other passes
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 13:38:02 PDT 2019
eugenis added a comment.
If that works for your use case, perhaps a better interface would be a query function that returns offset range or even bool is_safe given an AllocaInst* ?
================
Comment at: llvm/lib/Analysis/StackSafetyAnalysis.cpp:127
+ // namespace is no longer accessible directly when being passed with the
+ // refactored ParamInfo and AllocaInfo objects
+ using ::operator<<;
----------------
gilang wrote:
> eugenis wrote:
> > I'm not sure I understand this comment. Are the overloads for the new types shadowing the common overloads? Would it help to move them out of the anonymous namespace?
> >
> > Btw, please upload change with full context, it's hard to review otherwise.
> > See https://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface
> Hi. Apologize for the inconvenience. I have updated the patch to include the full context.
>
> So, without adding the using statement inside the block, the code will not compile due to overloading failure. Putting the operator overload declaration outside the anonymous namespace also does not help.
>
> Clang used: 6.0.0-1ubuntu2
I'm not sure where the problem is, but there are no such "using ::operator<<" declarations anywhere else in llvm, so there must be a way around it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63703/new/
https://reviews.llvm.org/D63703
More information about the llvm-commits
mailing list