mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Scalar/PlaceSafepoints.cpp: Fix a warning introduced in r228090. [-Wunused-variable]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236711 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a3ded6b432
commit
c128e5c8c2
@ -868,10 +868,8 @@ static BasicBlock *normalizeBBForInvokeSafepoint(BasicBlock *BB,
|
||||
/// NOT do explicit relocation for GC support.
|
||||
static Value *ReplaceWithStatepoint(const CallSite &CS, /* to replace */
|
||||
Pass *P) {
|
||||
BasicBlock *BB = CS.getInstruction()->getParent();
|
||||
Function *F = BB->getParent();
|
||||
Module *M = F->getParent();
|
||||
assert(M && "must be set");
|
||||
assert(CS.getInstruction()->getParent()->getParent()->getParent() &&
|
||||
"must be set");
|
||||
|
||||
// TODO: technically, a pass is not allowed to get functions from within a
|
||||
// function pass since it might trigger a new function addition. Refactor
|
||||
|
Loading…
Reference in New Issue
Block a user