Change the PassManager from a reference to a pointer.
The TargetPassManager's default constructor wants to initialize the PassManager to 'null'. But it's illegal to bind a null reference to a null l-value. Make the ivar a pointer instead. PR12468 llvm-svn: 155902
This commit is contained in:
@@ -98,13 +98,13 @@ TargetPassConfig *PPCTargetMachine::createPassConfig(PassManagerBase &PM) {
|
||||
|
||||
bool PPCPassConfig::addInstSelector() {
|
||||
// Install an instruction selector.
|
||||
PM.add(createPPCISelDag(getPPCTargetMachine()));
|
||||
PM->add(createPPCISelDag(getPPCTargetMachine()));
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PPCPassConfig::addPreEmitPass() {
|
||||
// Must run branch selection immediately preceding the asm printer.
|
||||
PM.add(createPPCBranchSelectionPass());
|
||||
PM->add(createPPCBranchSelectionPass());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user