diff --git a/tools/rewriter/GenCallAsm.cpp b/tools/rewriter/GenCallAsm.cpp index 74d671617..e7db75eac 100644 --- a/tools/rewriter/GenCallAsm.cpp +++ b/tools/rewriter/GenCallAsm.cpp @@ -357,7 +357,7 @@ static void emit_switch_stacks(AsmWriter &aw, int old_pkey, int new_pkey, Arch a add_asm_line(aw, "add x10, x10, x9"); // Tag the pointer with the old pkey if (old_pkey != 0) { - add_asm_line(aw, llvm::formatv("orr x10, x10, #{0:x}00000000000000", old_pkey)); + add_asm_line(aw, llvm::formatv("orr x10, x10, #{0:x}00000000000000", old_pkey)); } add_comment_line(aw, "Write old stack pointer to memory"); // Keep the old stack pointer in x12 @@ -370,7 +370,7 @@ static void emit_switch_stacks(AsmWriter &aw, int old_pkey, int new_pkey, Arch a add_asm_line(aw, "add x10, x10, x9"); // Tag the pointer with the new pkey if (new_pkey != 0) { - add_asm_line(aw, llvm::formatv("orr x10, x10, #{0:x}00000000000000", new_pkey)); + add_asm_line(aw, llvm::formatv("orr x10, x10, #{0:x}00000000000000", new_pkey)); } add_comment_line(aw, "Read new stack pointer from memory"); add_asm_line(aw, "ldr x11, [x10]"); diff --git a/tools/rewriter/SourceRewriter.cpp b/tools/rewriter/SourceRewriter.cpp index 23ea9735d..3d183eac3 100644 --- a/tools/rewriter/SourceRewriter.cpp +++ b/tools/rewriter/SourceRewriter.cpp @@ -66,7 +66,7 @@ struct DirectoryParser : public llvm::cl::parser { bool parse(llvm::cl::Option &O, llvm::StringRef ArgName, const llvm::StringRef &ArgValue, std::string &Value) { llvm::cl::parser::parse(O, ArgName, ArgValue, Value); - llvm::SmallString dir { llvm::StringRef(Value) }; + llvm::SmallString dir{llvm::StringRef(Value)}; bool exists = llvm::sys::fs::is_directory(dir); if (!exists) { llvm::errs() << "error: directory does not exist: " << dir << "\n"; @@ -1053,7 +1053,7 @@ std::optional pkey_from_commands(std::function