mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "swift/Basic/Punycode.h"
|
||||
#include "swift/Basic/SourceManager.h"
|
||||
#include "swift/Basic/Version.h"
|
||||
#include "swift/Basic/ManglingMacros.h"
|
||||
#include "swift/ClangImporter/ClangImporter.h"
|
||||
#include "swift/SIL/SILArgument.h"
|
||||
#include "swift/SIL/SILBasicBlock.h"
|
||||
@@ -356,7 +357,7 @@ void IRGenDebugInfo::setEntryPointLoc(IRBuilder &Builder) {
|
||||
}
|
||||
|
||||
llvm::DIScope *IRGenDebugInfo::getOrCreateScope(const SILDebugScope *DS) {
|
||||
if (DS == 0)
|
||||
if (DS == nullptr)
|
||||
return MainFile;
|
||||
|
||||
// Try to find it in the cache first.
|
||||
@@ -1107,7 +1108,9 @@ llvm::DICompositeType *IRGenDebugInfo::createStructType(
|
||||
if (UniqueID.empty())
|
||||
assert(!Name.empty() && "no mangled name and no human readable name given");
|
||||
else
|
||||
assert(UniqueID.size() > 2 && UniqueID[0] == '_' && UniqueID[1] == 'T' &&
|
||||
assert(UniqueID.size() > 2 &&
|
||||
(UniqueID.startswith("_T") ||
|
||||
UniqueID.startswith(MANGLING_PREFIX_STR)) &&
|
||||
"UID is not a mangled name");
|
||||
#endif
|
||||
|
||||
@@ -1706,11 +1709,6 @@ llvm::DIType *IRGenDebugInfo::createType(DebugTypeInfo DbgTy,
|
||||
File, L.Line, File);
|
||||
}
|
||||
|
||||
case TypeKind::Substituted: {
|
||||
auto OrigTy = cast<SubstitutedType>(BaseTy)->getReplacementType();
|
||||
return getOrCreateDesugaredType(OrigTy, DbgTy);
|
||||
}
|
||||
|
||||
case TypeKind::Paren: {
|
||||
auto Ty = cast<ParenType>(BaseTy)->getUnderlyingType();
|
||||
return getOrCreateDesugaredType(Ty, DbgTy);
|
||||
|
||||
Reference in New Issue
Block a user