mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 03:32:10 +00:00
Don't call getValueType() on a null SDValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90415 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c9f2027adb
commit
9f0d4e631d
@ -546,7 +546,8 @@ SDValue DAGCombiner::CombineTo(SDNode *N, const SDValue *To, unsigned NumTo,
|
||||
To[0].getNode()->dump(&DAG);
|
||||
errs() << " and " << NumTo-1 << " other values\n";
|
||||
for (unsigned i = 0, e = NumTo; i != e; ++i)
|
||||
assert(N->getValueType(i) == To[i].getValueType() &&
|
||||
assert((!To[i].getNode() ||
|
||||
N->getValueType(i) == To[i].getValueType()) &&
|
||||
"Cannot combine value to value of different type!"));
|
||||
WorkListRemover DeadNodes(*this);
|
||||
DAG.ReplaceAllUsesWith(N, To, &DeadNodes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user