Skip to content

Commit 0d592c8

Browse files
committed
[Driver][PS5] Simplify a condition
1 parent e817445 commit 0d592c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Driver/ToolChains/PS4CPU.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,12 @@ void tools::PScpu::Linker::ConstructJob(Compilation &C, const JobAction &JA,
157157
const bool UseJMC =
158158
Args.hasFlag(options::OPT_fjmc, options::OPT_fno_jmc, false);
159159
const bool IsPS4 = TC.getTriple().isPS4();
160-
const bool IsPS5 = TC.getTriple().isPS5();
161-
assert(IsPS4 || IsPS5);
162160

163161
const char *PS4LTOArgs = "";
164162
auto AddCodeGenFlag = [&](Twine Flag) {
165163
if (IsPS4)
166164
PS4LTOArgs = Args.MakeArgString(Twine(PS4LTOArgs) + " " + Flag);
167-
else if (IsPS5)
165+
else
168166
CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=") + Flag));
169167
};
170168

0 commit comments

Comments
 (0)