Use predicate for Value type test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-09-10 20:09:28 +00:00
parent b64e774ce5
commit 919758563d
2 changed files with 2 additions and 4 deletions

View File

@ -482,8 +482,7 @@ SchedGraph::addSSAEdge(SchedGraphNode* node,
Value* val,
const TargetMachine& target)
{
if (val->getValueType() != Value::InstructionVal)
return;
if (!val->isInstruction()) return;
const Instruction* thisVMInstr = node->getInstr();
const Instruction* defVMInstr = (const Instruction*) val;

View File

@ -482,8 +482,7 @@ SchedGraph::addSSAEdge(SchedGraphNode* node,
Value* val,
const TargetMachine& target)
{
if (val->getValueType() != Value::InstructionVal)
return;
if (!val->isInstruction()) return;
const Instruction* thisVMInstr = node->getInstr();
const Instruction* defVMInstr = (const Instruction*) val;