aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2015-05-18 21:48:55 +0000
committerFilipe Cabecinhas <me@filcab.net>2015-05-18 21:48:55 +0000
commit11bb8495f6f44ec842bed641f837df2e3cbc29fa (patch)
tree890d9c9f9fa22bf21bfaeec9573b348b2aae189e /llvm/lib/CodeGen/StackProtector.cpp
parent41216393a43930f66e9ea697ed9a03b7f3b66cf1 (diff)
downloadllvm-11bb8495f6f44ec842bed641f837df2e3cbc29fa.zip
llvm-11bb8495f6f44ec842bed641f837df2e3cbc29fa.tar.gz
llvm-11bb8495f6f44ec842bed641f837df2e3cbc29fa.tar.bz2
Extract the load/store type verification to a separate function.
Summary: Added isLoadableOrStorableType to PointerType. We were doing some checks in some places, occasionally assert()ing instead of telling the caller. With this patch, I'm putting all type checking in the same place for load/store type instructions, and verifying the same thing every time. I also added a check for load/store of a function type. Applied extracted check to Load, Store, and Cmpxcg. I don't have exhaustive tests for all of these, but all Error() calls in TypeCheckLoadStoreInst are being tested (in invalid.test). Reviewers: dblaikie, rafael Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9785 llvm-svn: 237619
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions