summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2017-08-29 15:28:12 +0000
committerDehao Chen <dehao@google.com>2017-08-29 15:28:12 +0000
commitefd007f6f4dc77655a8a266f325d6b31376224d8 (patch)
tree247c1208a7b256943460dcc17ae2d36b6ef007a4 /clang/lib/Frontend/CompilerInstance.cpp
parentdb21e5324a0ce7b920394288b5b9bea00b231e6c (diff)
downloadbcm5719-llvm-efd007f6f4dc77655a8a266f325d6b31376224d8.tar.gz
bcm5719-llvm-efd007f6f4dc77655a8a266f325d6b31376224d8.zip
Add null check for promoted direct call
Summary: We originally assume that in pgo-icp, the promoted direct call will never be null after strip point casts. However, stripPointerCasts is so smart that it could possibly return the value of the function call if it knows that the return value is always an argument. In this case, the returned value cannot cast to Instruction. In this patch, null check is added to ensure null pointer will not be accessed. Reviewers: tejohnson, xur, davidxl, djasper Reviewed By: tejohnson Subscribers: llvm-commits, sanjoy Differential Revision: https://reviews.llvm.org/D37252 llvm-svn: 312005
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud