[PATCH] D16466: [ELF] - fix possible UB when dereferencing null

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 22 07:45:23 PST 2016


grimar added inline comments.

================
Comment at: ELF/InputSection.cpp:174
@@ -173,3 +173,3 @@
       if (!Body)
         SymVA = getLocalRelTarget(*File, RI, 0);
       else if (Target->relocNeedsGot(Type, *Body))
----------------
Thats the place. Having nullptr is ok here.


http://reviews.llvm.org/D16466





More information about the llvm-commits mailing list