mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #85688 from swiftlang/jepa-main4
Address some issues building against LLVM next
This commit is contained in:
@@ -289,7 +289,7 @@ class GetDeallocThroughFn {
|
||||
/// TaskAllocator Allocator;
|
||||
/// }
|
||||
struct PrivateLayout {
|
||||
enum Kind {
|
||||
enum Kind : uint8_t {
|
||||
Old32Bit,
|
||||
Old64Bit,
|
||||
New32BitSansEscalation,
|
||||
|
||||
@@ -1145,8 +1145,7 @@ swift::createTargetMachine(const IRGenOptions &Opts, ASTContext &Ctx,
|
||||
}
|
||||
|
||||
std::string Error;
|
||||
const Target *Target =
|
||||
TargetRegistry::lookupTarget(EffectiveTriple.str(), Error);
|
||||
const Target *Target = TargetRegistry::lookupTarget(EffectiveTriple, Error);
|
||||
if (!Target) {
|
||||
Ctx.Diags.diagnose(SourceLoc(), diag::no_llvm_target, EffectiveTriple.str(),
|
||||
Error);
|
||||
|
||||
Reference in New Issue
Block a user