[PATCH] D70113: Mark llvm::ConstantExpr::getAsInstruction as const

Alex Denisov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 05:23:44 PST 2019


AlexDenisov added a comment.

@jmolloy in our case we use LLVM as a library. We use `getAsInstruction` down the road and it forces us to remove all `const` qualifiers from a custom `InstVisitor` even though we only read the values and do not modify anything.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70113/new/

https://reviews.llvm.org/D70113





More information about the llvm-commits mailing list