Skip to content

Commit

Permalink
[ClassicFlang][Driver] Fix warnings
Browse files Browse the repository at this point in the history
* -Wsuggest-override for ClassicFlangMacroBuilder::defineMacro

Signed-off-by: Itay Bookstein <[email protected]>
  • Loading branch information
nextsilicon-itay-bookstein authored and bryanpkc committed Sep 26, 2024
1 parent 25e66cd commit c6fbd79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Driver/ToolChains/ClassicFlang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ClassicFlangMacroBuilder : public MacroBuilder {
ClassicFlangMacroBuilder(ArgStringList &UpperCmdArgs, const ArgList &DriverArgs, llvm::raw_string_ostream &Output)
: MacroBuilder(Output), CmdArgs(UpperCmdArgs), DriverArgs(DriverArgs) {
}
virtual void defineMacro(const Twine &Name, const Twine &Value = "1") {
virtual void defineMacro(const Twine &Name, const Twine &Value = "1") override {
CmdArgs.push_back("-def");
CmdArgs.push_back(DriverArgs.MakeArgString(Name + Twine('=') + Value));
}
Expand Down

0 comments on commit c6fbd79

Please sign in to comment.