[PATCH] D19129: Fix null pointer access for discriminator assignment.
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 14 12:52:23 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL266360: Fix null pointer access for discriminator assignment. (authored by dehao).
Changed prior to commit:
http://reviews.llvm.org/D19129?vs=53772&id=53773#toc
Repository:
rL LLVM
http://reviews.llvm.org/D19129
Files:
llvm/trunk/lib/Transforms/Utils/AddDiscriminators.cpp
Index: llvm/trunk/lib/Transforms/Utils/AddDiscriminators.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Utils/AddDiscriminators.cpp
+++ llvm/trunk/lib/Transforms/Utils/AddDiscriminators.cpp
@@ -222,6 +222,8 @@
continue;
DILocation *CurrentDIL = Current->getDebugLoc();
+ if (!CurrentDIL)
+ continue;
Location L =
std::make_pair(CurrentDIL->getFilename(), CurrentDIL->getLine());
if (!CallLocations.insert(L).second) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19129.53773.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160414/b3f9b7f7/attachment.bin>
More information about the llvm-commits
mailing list