Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ class FullSourceLoc : public SourceLocation {
/// \returns true if this source location comes before 'Loc', false otherwise.
bool isBeforeInTranslationUnitThan(FullSourceLoc Loc) const {
assert(Loc.isValid());
if (!SrcMgr) return true; // assume command line is before Loc
assert(SrcMgr == Loc.SrcMgr && "Loc comes from another SourceManager!");
return isBeforeInTranslationUnitThan((SourceLocation)Loc);
}
Expand Down
5 changes: 1 addition & 4 deletions interpreter/llvm-project/clang/lib/Basic/SourceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2095,10 +2095,7 @@ bool SourceManager::isBeforeInTranslationUnit(SourceLocation LHS,
return LIsScratch;
return LOffs.second < ROffs.second;
}
//AXEL: Work around diags from include chains not rooted in main file.
//AXEL: llvm_unreachable("Unsortable locations found");
assert(0 && "Unsortable locations found");
return LOffs.first < ROffs.first;
llvm_unreachable("Unsortable locations found");
}

std::pair<bool, bool> SourceManager::isInTheSameTranslationUnit(
Expand Down
2 changes: 0 additions & 2 deletions interpreter/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2243,9 +2243,7 @@ static void emitUsed(CodeGenModule &CGM, StringRef Name,

void CodeGenModule::emitLLVMUsed() {
emitUsed(*this, "llvm.used", LLVMUsed);
LLVMUsed.clear();
emitUsed(*this, "llvm.compiler.used", LLVMCompilerUsed);
LLVMCompilerUsed.clear();
}

void CodeGenModule::AppendLinkerOptions(StringRef Opts) {
Expand Down