summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MSP430/MSP430TargetMachine.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-05-01 08:27:43 +0000
committerBill Wendling <isanbard@gmail.com>2012-05-01 08:27:43 +0000
commitb12f16e75ff8cb213bed9b48facd51aae5ebff73 (patch)
tree6a0b763188cd9c2cca88a9b26bf6242fe41b856b /llvm/lib/Target/MSP430/MSP430TargetMachine.cpp
parenteb590aa9560b383823b4d992a1f03638a5246704 (diff)
downloadbcm5719-llvm-b12f16e75ff8cb213bed9b48facd51aae5ebff73.tar.gz
bcm5719-llvm-b12f16e75ff8cb213bed9b48facd51aae5ebff73.zip
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
Diffstat (limited to 'llvm/lib/Target/MSP430/MSP430TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/MSP430/MSP430TargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430TargetMachine.cpp b/llvm/lib/Target/MSP430/MSP430TargetMachine.cpp
index 9f2eda13d7f..3acf96bb7d2 100644
--- a/llvm/lib/Target/MSP430/MSP430TargetMachine.cpp
+++ b/llvm/lib/Target/MSP430/MSP430TargetMachine.cpp
@@ -60,12 +60,12 @@ TargetPassConfig *MSP430TargetMachine::createPassConfig(PassManagerBase &PM) {
bool MSP430PassConfig::addInstSelector() {
// Install an instruction selector.
- PM.add(createMSP430ISelDag(getMSP430TargetMachine(), getOptLevel()));
+ PM->add(createMSP430ISelDag(getMSP430TargetMachine(), getOptLevel()));
return false;
}
bool MSP430PassConfig::addPreEmitPass() {
// Must run branch selection immediately preceding the asm printer.
- PM.add(createMSP430BranchSelectionPass());
+ PM->add(createMSP430BranchSelectionPass());
return false;
}
OpenPOWER on IntegriCloud