Cope with Replacements now having llvm::Error returns
Ta zmiana jest zawarta w:
%! (template.HTML=
Chris Kitching)złożyło 2017-10-19 17:08:54 +01:00
1 rodzic
9ccb966e2b
złożenie
885573e1e2
Plik 1 zmieniony
+6
@@ -2928,7 +2928,13 @@ protected:
|
||||
std::string mainFileName;
|
||||
|
||||
virtual void insertReplacement(const Replacement &rep, const FullSourceLoc &fullSL) {
|
||||
#if LLVM_VERSION_MAJOR > 3
|
||||
// New clang added error checking to Replacements, and *insists* that you explicitly check it.
|
||||
llvm::Error e = Replace->add(rep);
|
||||
#else
|
||||
// In older versions, it's literally an std::set<Replacement>
|
||||
Replace->insert(rep);
|
||||
#endif
|
||||
if (PrintStats) {
|
||||
LOCs.insert(fullSL.getExpansionLineNumber());
|
||||
}
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika