@@ -2366,17 +2366,17 @@ static void upgradeDbgIntrinsicToDbgRecord(StringRef Name, CallBase *CI) {
2366
2366
unwrapMAVOp<Metadata>(CI, 4 ), unwrapMAVOp<DIExpression>(CI, 5 ),
2367
2367
CI->getDebugLoc ());
2368
2368
} else if (Name == " declare" ) {
2369
- DR = new DbgVariableRecord (unwrapMAVOp<Metadata>(CI, 0 ),
2370
- unwrapMAVOp<DILocalVariable>(CI, 1 ),
2371
- unwrapMAVOp<DIExpression>(CI, 2 ), CI->getDebugLoc (),
2372
- DbgVariableRecord::LocationType::Declare);
2369
+ DR = new DbgVariableRecord (
2370
+ unwrapMAVOp<Metadata>(CI, 0 ), unwrapMAVOp<DILocalVariable>(CI, 1 ),
2371
+ unwrapMAVOp<DIExpression>(CI, 2 ), CI->getDebugLoc (),
2372
+ DbgVariableRecord::LocationType::Declare);
2373
2373
} else if (Name == " addr" ) {
2374
2374
// Upgrade dbg.addr to dbg.value with DW_OP_deref.
2375
2375
DIExpression *Expr = unwrapMAVOp<DIExpression>(CI, 2 );
2376
2376
Expr = DIExpression::append (Expr, dwarf::DW_OP_deref);
2377
2377
DR = new DbgVariableRecord (unwrapMAVOp<Metadata>(CI, 0 ),
2378
- unwrapMAVOp<DILocalVariable>(CI, 1 ), Expr,
2379
- CI->getDebugLoc ());
2378
+ unwrapMAVOp<DILocalVariable>(CI, 1 ), Expr,
2379
+ CI->getDebugLoc ());
2380
2380
} else if (Name == " value" ) {
2381
2381
// An old version of dbg.value had an extra offset argument.
2382
2382
unsigned VarOp = 1 ;
@@ -2389,9 +2389,9 @@ static void upgradeDbgIntrinsicToDbgRecord(StringRef Name, CallBase *CI) {
2389
2389
VarOp = 2 ;
2390
2390
ExprOp = 3 ;
2391
2391
}
2392
- DR = new DbgVariableRecord (unwrapMAVOp<Metadata>(CI, 0 ),
2393
- unwrapMAVOp<DILocalVariable>(CI, VarOp),
2394
- unwrapMAVOp<DIExpression>(CI, ExprOp), CI->getDebugLoc ());
2392
+ DR = new DbgVariableRecord (
2393
+ unwrapMAVOp<Metadata>(CI, 0 ), unwrapMAVOp<DILocalVariable>(CI, VarOp),
2394
+ unwrapMAVOp<DIExpression>(CI, ExprOp), CI->getDebugLoc ());
2395
2395
}
2396
2396
assert (DR && " Unhandled intrinsic kind in upgrade to DbgRecord" );
2397
2397
CI->getParent ()->insertDbgRecordBefore (DR, CI->getIterator ());
0 commit comments