mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 22:00:10 +00:00
[clang][tidy] Fix build failure after 07157db
This commit is contained in:
parent
079ca05eea
commit
bb0f162b3a
@ -148,7 +148,7 @@ public:
|
||||
tooling::Replacement R(FixAbsoluteFilePath, Repl.getOffset(),
|
||||
Repl.getLength(), Repl.getReplacementText());
|
||||
auto &Entry = FileReplacements[R.getFilePath()];
|
||||
Replacements &Replacements = Entry.Replacements;
|
||||
Replacements &Replacements = Entry.Replaces;
|
||||
llvm::Error Err = Replacements.add(R);
|
||||
if (Err) {
|
||||
// FIXME: Implement better conflict handling.
|
||||
@ -216,7 +216,7 @@ public:
|
||||
}
|
||||
llvm::Expected<tooling::Replacements> Replacements =
|
||||
format::cleanupAroundReplacements(
|
||||
Code, FileAndReplacements.second.Replacements, *Style);
|
||||
Code, FileAndReplacements.second.Replaces, *Style);
|
||||
if (!Replacements) {
|
||||
llvm::errs() << llvm::toString(Replacements.takeError()) << "\n";
|
||||
continue;
|
||||
@ -303,7 +303,7 @@ private:
|
||||
|
||||
struct ReplacementsWithBuildDir {
|
||||
StringRef BuildDir;
|
||||
Replacements Replacements;
|
||||
Replacements Replaces;
|
||||
};
|
||||
|
||||
FileManager Files;
|
||||
|
Loading…
Reference in New Issue
Block a user