summaryrefslogtreecommitdiffstats
path: root/lib/Target/PIC16/PIC16ISelDAGToDAG.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/PIC16/PIC16ISelDAGToDAG.h')
-rw-r--r--lib/Target/PIC16/PIC16ISelDAGToDAG.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Target/PIC16/PIC16ISelDAGToDAG.h b/lib/Target/PIC16/PIC16ISelDAGToDAG.h
index 3a2f6b4..d9172f2 100644
--- a/lib/Target/PIC16/PIC16ISelDAGToDAG.h
+++ b/lib/Target/PIC16/PIC16ISelDAGToDAG.h
@@ -36,7 +36,10 @@ class VISIBILITY_HIDDEN PIC16DAGToDAGISel : public SelectionDAGISel {
public:
explicit PIC16DAGToDAGISel(PIC16TargetMachine &tm) :
SelectionDAGISel(tm),
- TM(tm), PIC16Lowering(*TM.getTargetLowering()) {}
+ TM(tm), PIC16Lowering(*TM.getTargetLowering()) {
+ // Keep PIC16 specific DAGISel to use during the lowering
+ PIC16Lowering.ISel = this;
+ }
// Pass Name
virtual const char *getPassName() const {
OpenPOWER on IntegriCloud