1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

[mips][FastISel] Fix a nullptr deference.

r301392 introduced a potential nullptr deference causing compilation
failures.

llvm-svn: 301746
This commit is contained in:
Simon Dardis 2017-04-29 16:31:40 +00:00
parent 706286bdec
commit bc701a9536

View File

@ -1263,7 +1263,8 @@ bool MipsFastISel::finishCall(CallLoweringInfo &CLI, MVT RetVT,
MipsCCState CCInfo(CC, false, *FuncInfo.MF, RVLocs, *Context);
CCInfo.AnalyzeCallResult(CLI.Ins, RetCC_Mips, CLI.RetTy,
CLI.Symbol->getName().data());
CLI.Symbol ? CLI.Symbol->getName().data()
: nullptr);
// Only handle a single return value.
if (RVLocs.size() != 1)