diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-01-05 21:05:54 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-01-05 21:05:54 +0000 |
commit | d2564e3afb1d9fe42c4b092dfd0bcf472aa535e1 (patch) | |
tree | 779af716dfcdb72a3855bb1da70efb9a50da01d5 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | fd7e42b65d7bd07eb956f2605216b9b3419263a9 (diff) | |
download | bcm5719-llvm-d2564e3afb1d9fe42c4b092dfd0bcf472aa535e1.tar.gz bcm5719-llvm-d2564e3afb1d9fe42c4b092dfd0bcf472aa535e1.zip |
Move remaining stuff to the isInteger predicate.
llvm-svn: 92771
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackProtector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackProtector.cpp b/llvm/lib/CodeGen/StackProtector.cpp index e8ee82213a4..48bb5af4db3 100644 --- a/llvm/lib/CodeGen/StackProtector.cpp +++ b/llvm/lib/CodeGen/StackProtector.cpp @@ -113,7 +113,7 @@ bool StackProtector::RequiresStackProtector() const { if (const ArrayType *AT = dyn_cast<ArrayType>(AI->getAllocatedType())) { // We apparently only care about character arrays. - if (AT->getElementType() != Type::getInt8Ty(AT->getContext())) + if (!AT->getElementType()->isInteger(8)) continue; // If an array has more than SSPBufferSize bytes of allocated space, |