mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 14:36:34 +00:00
Assert that the DAG root value is a chain value.
llvm-svn: 53925
This commit is contained in:
parent
86c593ff1d
commit
7c7d8f931d
@ -19,6 +19,7 @@
|
||||
#include "llvm/ADT/StringMap.h"
|
||||
#include "llvm/CodeGen/SelectionDAGNodes.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
@ -127,7 +128,11 @@ public:
|
||||
|
||||
/// setRoot - Set the current root tag of the SelectionDAG.
|
||||
///
|
||||
const SDOperand &setRoot(SDOperand N) { return Root = N; }
|
||||
const SDOperand &setRoot(SDOperand N) {
|
||||
assert((!N.Val || N.getValueType() == MVT::Other) &&
|
||||
"DAG root value is not a chain!");
|
||||
return Root = N;
|
||||
}
|
||||
|
||||
/// Combine - This iterates over the nodes in the SelectionDAG, folding
|
||||
/// certain types of nodes together, or eliminating superfluous nodes. When
|
||||
|
Loading…
Reference in New Issue
Block a user