diff --git a/clang/test/Driver/riscv-arch.c b/clang/test/Driver/riscv-arch.c --- a/clang/test/Driver/riscv-arch.c +++ b/clang/test/Driver/riscv-arch.c @@ -426,7 +426,7 @@ // RUN: -fsyntax-only 2>&1 | FileCheck -check-prefix=RV32-EXPERIMENTAL-BADVERS %s // RV32-EXPERIMENTAL-BADVERS: error: invalid arch name 'rv32izbt0p1' // RV32-EXPERIMENTAL-BADVERS: unsupported version number 0.1 for experimental extension -// RV32-EXPERIMENTAL-BADVERS: 'zbt'(this compiler supports 0.93) +// RV32-EXPERIMENTAL-BADVERS: 'zbt' (this compiler supports 0.93) // RUN: %clang --target=riscv32-unknown-elf -march=rv32izbt0p93 -menable-experimental-extensions -### %s \ // RUN: -fsyntax-only 2>&1 | FileCheck -check-prefix=RV32-EXPERIMENTAL-GOODVERS %s diff --git a/llvm/lib/Support/RISCVISAInfo.cpp b/llvm/lib/Support/RISCVISAInfo.cpp --- a/llvm/lib/Support/RISCVISAInfo.cpp +++ b/llvm/lib/Support/RISCVISAInfo.cpp @@ -406,8 +406,8 @@ if (!MinorStr.empty()) Error += "." + MinorStr.str(); Error += " for experimental extension '" + Ext.str() + - "'(this compiler supports " + utostr(SupportedVers.Major) + "." + - utostr(SupportedVers.Minor) + ")"; + "' (this compiler supports " + utostr(SupportedVers.Major) + + "." + utostr(SupportedVers.Minor) + ")"; return createStringError(errc::invalid_argument, Error); } return Error::success();