mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-19 03:38:26 +00:00
De-duplicate common expression, NFC.
llvm-svn: 239736
This commit is contained in:
parent
8c25ff7ebc
commit
fd88932f59
@ -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…
x
Reference in New Issue
Block a user