forked from OSchip/llvm-project
parent
3734fe4f35
commit
8e421f454d
|
@ -116,7 +116,7 @@ void BBLiveVar::calcDefUseSets() {
|
|||
assert(MI->getOpCode() != PHI && "Phi cannot have implicit opeands");
|
||||
const Value *Op = MI->getImplicitRef(i);
|
||||
|
||||
if (Op->getType()->isLabelType()) // don't process labels
|
||||
if (Op->getType() == Type::LabelTy) // don't process labels
|
||||
continue;
|
||||
|
||||
if (!MI->implicitRefIsDefined(i))
|
||||
|
|
|
@ -170,7 +170,7 @@ struct InstPlaceHolderHelper : public Instruction {
|
|||
|
||||
struct BBPlaceHolderHelper : public BasicBlock {
|
||||
BBPlaceHolderHelper(const Type *Ty) : BasicBlock() {
|
||||
assert(Ty->isLabelType());
|
||||
assert(Ty == Type::LabelTy);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue