File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4649,13 +4649,12 @@ BasicBlock::CheckLegalityAndFoldPathDepBranches(GlobOpt* globOpt)
4649
4649
else if (instr->GetSrc1 ()->IsIntConstOpnd ())
4650
4650
{
4651
4651
Value **localValue = localSymToValueMap->FindOrInsertNew (instr->GetDst ()->GetSym ());
4652
- *localValue = globOpt->NewValue ( IntConstantValueInfo::New (globOpt-> alloc , instr->GetSrc1 ()->AsIntConstOpnd ()->AsInt32 ()) );
4652
+ *localValue = globOpt->GetIntConstantValue ( instr->GetSrc1 ()->AsIntConstOpnd ()->AsInt32 (), instr );
4653
4653
}
4654
4654
else if (instr->GetSrc1 ()->IsInt64ConstOpnd ())
4655
4655
{
4656
4656
Value **localValue = localSymToValueMap->FindOrInsertNew (instr->GetDst ()->GetSym ());
4657
- int64 intValue = instr->GetSrc1 ()->AsInt64ConstOpnd ()->GetValue ();
4658
- *localValue = globOpt->NewValue (Int64ConstantValueInfo::New (globOpt->alloc , intValue));
4657
+ *localValue = globOpt->GetIntConstantValue (instr->GetSrc1 ()->AsInt64ConstOpnd ()->GetValue (), instr);
4659
4658
}
4660
4659
else
4661
4660
{
You can’t perform that action at this time.
0 commit comments