mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-24 14:33:40 +00:00
Fix an incredibly subtle bug exposed by Ted's change to APInt profiling.
AddNodeIDNode does profiling for a ConstantSDNode, but so does SelectionDAG::getConstant. This profiling should be moved to a common static function in ConstantSDNode. llvm-svn: 47359
This commit is contained in:
parent
723b09a29d
commit
8705005be1
@ -361,7 +361,7 @@ static void AddNodeIDNode(FoldingSetNodeID &ID, SDNode *N) {
|
||||
default: break; // Normal nodes don't need extra info.
|
||||
case ISD::TargetConstant:
|
||||
case ISD::Constant:
|
||||
ID.AddInteger(cast<ConstantSDNode>(N)->getValue());
|
||||
ID.Add(cast<ConstantSDNode>(N)->getAPIntValue());
|
||||
break;
|
||||
case ISD::TargetConstantFP:
|
||||
case ISD::ConstantFP: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user