OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e71cfb9
)
[mips][FastISel] Fix a nullptr deference.
author
Simon Dardis
<simon.dardis@imgtec.com>
Sat, 29 Apr 2017 16:31:40 +0000
(16:31 +0000)
committer
Simon Dardis
<simon.dardis@imgtec.com>
Sat, 29 Apr 2017 16:31:40 +0000
(16:31 +0000)
r301392 introduced a potential nullptr deference causing compilation
failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301746
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/Mips/MipsFastISel.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/Mips/MipsFastISel.cpp
b/lib/Target/Mips/MipsFastISel.cpp
index
d1ec77e
..
21c99da
100644
(file)
--- a/
lib/Target/Mips/MipsFastISel.cpp
+++ b/
lib/Target/Mips/MipsFastISel.cpp
@@
-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)