Skip to content

Commit 843d4cc

Browse files
Addressed build fail
1 parent ba6c662 commit 843d4cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,7 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args,
19011901
if (const llvm::opt::Arg *A =
19021902
Args.getLastArg(clang::driver::options::OPT_mcmodel_EQ)) {
19031903
llvm::StringRef modelName = A->getValue();
1904-
if (modelName == "tiny" && !T.isARM()) {
1904+
if (modelName == "tiny" && !(T.isARM() || T.isAArch64())) {
19051905
Diags.Report(diag::err_drv_unsupported_option_argument_for_target)
19061906
<< A->getSpelling() << modelName << T.getTriple();
19071907
}

0 commit comments

Comments
 (0)