Skip to content

Commit eefabb8

Browse files
committed
fix codegen errors
Signed-off-by: Soumi Manna <[email protected]>
1 parent e73277a commit eefabb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/CodeGen/CGLoopInfo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ MDNode *LoopInfo::createMetadata(
556556
Metadata *Vals[] = {
557557
MDString::get(Ctx, "llvm.loop.max_concurrency.count"),
558558
ConstantAsMetadata::get(ConstantInt::get(
559-
llvm::Type::getInt32Ty(Ctx), Attrs.SYCLMaxConcurrencyNThreads))};
559+
llvm::Type::getInt32Ty(Ctx), *Attrs.SYCLMaxConcurrencyNThreads))};
560560
LoopProperties.push_back(MDNode::get(Ctx, Vals));
561561
}
562562

@@ -586,7 +586,7 @@ MDNode *LoopInfo::createMetadata(
586586
Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.max_interleaving.count"),
587587
ConstantAsMetadata::get(ConstantInt::get(
588588
llvm::Type::getInt32Ty(Ctx),
589-
Attrs.SYCLMaxInterleavingNInvocations))};
589+
*Attrs.SYCLMaxInterleavingNInvocations))};
590590
LoopProperties.push_back(MDNode::get(Ctx, Vals));
591591
}
592592

@@ -601,7 +601,7 @@ MDNode *LoopInfo::createMetadata(
601601
MDString::get(Ctx, "llvm.loop.intel.speculated.iterations.count"),
602602
ConstantAsMetadata::get(
603603
ConstantInt::get(llvm::Type::getInt32Ty(Ctx),
604-
Attrs.SYCLSpeculatedIterationsNIterations))};
604+
*Attrs.SYCLSpeculatedIterationsNIterations))};
605605
LoopProperties.push_back(MDNode::get(Ctx, Vals));
606606
}
607607

0 commit comments

Comments
 (0)