[PATCH] D61614: [NFCI] Refactor UnaryOperator class
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 6 16:46:51 PDT 2019
craig.topper added inline comments.
================
Comment at: llvm/include/llvm/IR/InstrTypes.h:80
static bool classof(const Instruction *I) {
- return I->getOpcode() == Instruction::Alloca ||
+ return I->isUnaryOp() ||
+ I->getOpcode() == Instruction::Alloca ||
----------------
Is this a functional change? Assuming anyone ever casts to UnaryInstruction.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61614/new/
https://reviews.llvm.org/D61614
More information about the llvm-commits
mailing list