Skip to content

Commit 21f2d1a

Browse files
author
Meghana Gupta
committed
CR suggestion
1 parent dfc835a commit 21f2d1a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Backend/FlowGraph.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4649,13 +4649,12 @@ BasicBlock::CheckLegalityAndFoldPathDepBranches(GlobOpt* globOpt)
46494649
else if (instr->GetSrc1()->IsIntConstOpnd())
46504650
{
46514651
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);
46534653
}
46544654
else if (instr->GetSrc1()->IsInt64ConstOpnd())
46554655
{
46564656
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);
46594658
}
46604659
else
46614660
{

0 commit comments

Comments
 (0)