Skip to content

Commit 403bb36

Browse files
Merge pull request #85688 from swiftlang/jepa-main4
Address some issues building against LLVM next
2 parents 9304ce9 + 3e54e64 commit 403bb36

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/IRGen/GenCoro.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class GetDeallocThroughFn {
289289
/// TaskAllocator Allocator;
290290
/// }
291291
struct PrivateLayout {
292-
enum Kind {
292+
enum Kind : uint8_t {
293293
Old32Bit,
294294
Old64Bit,
295295
New32BitSansEscalation,

lib/IRGen/IRGen.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,8 +1145,7 @@ swift::createTargetMachine(const IRGenOptions &Opts, ASTContext &Ctx,
11451145
}
11461146

11471147
std::string Error;
1148-
const Target *Target =
1149-
TargetRegistry::lookupTarget(EffectiveTriple.str(), Error);
1148+
const Target *Target = TargetRegistry::lookupTarget(EffectiveTriple, Error);
11501149
if (!Target) {
11511150
Ctx.Diags.diagnose(SourceLoc(), diag::no_llvm_target, EffectiveTriple.str(),
11521151
Error);

0 commit comments

Comments
 (0)