mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
LLVMContext-ification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "llvm/BasicBlock.h"
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/Instructions.h"
|
||||
#include "llvm/LLVMContext.h"
|
||||
#include "llvm/Type.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/Support/CFG.h"
|
||||
@@ -202,7 +203,7 @@ void BasicBlock::removePredecessor(BasicBlock *Pred,
|
||||
PN->replaceAllUsesWith(PN->getOperand(0));
|
||||
else
|
||||
// We are left with an infinite loop with no entries: kill the PHI.
|
||||
PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
|
||||
PN->replaceAllUsesWith(getContext()->getUndef(PN->getType()));
|
||||
getInstList().pop_front(); // Remove the PHI node
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user