mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
Initialize SelectionDAGBuilder's Context in 'init', not in its constructor. The
SelectionDAG's 'init' has not been called when the SelectionDAGBuilder is constructed (in SelectionDAGISel's constructor), so this was previously always initialized with 0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162333 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bc36393108
commit
cb1f68d7c8
@ -825,6 +825,7 @@ void SelectionDAGBuilder::init(GCFunctionInfo *gfi, AliasAnalysis &aa,
|
||||
GFI = gfi;
|
||||
LibInfo = li;
|
||||
TD = DAG.getTarget().getTargetData();
|
||||
Context = DAG.getContext();
|
||||
LPadToCallSiteMap.clear();
|
||||
}
|
||||
|
||||
|
@ -325,7 +325,7 @@ public:
|
||||
CodeGenOpt::Level ol)
|
||||
: SDNodeOrder(0), TM(dag.getTarget()), TLI(dag.getTargetLoweringInfo()),
|
||||
DAG(dag), FuncInfo(funcinfo), OptLevel(ol),
|
||||
HasTailCall(false), Context(dag.getContext()) {
|
||||
HasTailCall(false) {
|
||||
}
|
||||
|
||||
void init(GCFunctionInfo *gfi, AliasAnalysis &aa,
|
||||
|
Loading…
Reference in New Issue
Block a user