mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-15 16:09:57 +00:00
De-duplicate common expression, NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b4c2481907
commit
698a7e58e0
@ -26,9 +26,9 @@ Instruction::Instruction(Type *ty, unsigned it, Use *Ops, unsigned NumOps,
|
||||
|
||||
// If requested, insert this instruction into a basic block...
|
||||
if (InsertBefore) {
|
||||
assert(InsertBefore->getParent() &&
|
||||
"Instruction to insert before is not in a basic block!");
|
||||
InsertBefore->getParent()->getInstList().insert(InsertBefore, this);
|
||||
BasicBlock *BB = InsertBefore->getParent();
|
||||
assert(BB && "Instruction to insert before is not in a basic block!");
|
||||
BB->getInstList().insert(InsertBefore, this);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user