[llvm/DebugInfo] Simplify DW_OP_implicit_value condition (NFC)

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
This commit is contained in:
Med Ismail Bennani 2020-10-27 11:24:16 +01:00
parent 6539ebe97d
commit a3aea0193d
1 changed files with 1 additions and 2 deletions

View File

@ -2480,8 +2480,7 @@ void DwarfDebug::emitDebugLocValue(const AsmPrinter &AP, const DIBasicType *BT,
DwarfExpr.addExpression(std::move(ExprCursor));
return;
} else if (Value.isConstantFP()) {
if (AP.getDwarfVersion() >= 4 && (AP.getDwarfDebug()->tuneForGDB() ||
AP.getDwarfDebug()->tuneForLLDB())) {
if (AP.getDwarfVersion() >= 4 && !AP.getDwarfDebug()->tuneForSCE()) {
DwarfExpr.addConstantFP(Value.getConstantFP()->getValueAPF(), AP);
return;
} else if (Value.getConstantFP()