summaryrefslogtreecommitdiffstats
path: root/llvm/lib/FuzzMutate
diff options
context:
space:
mode:
authorIgor Laevsky <igmyrj@gmail.com>2017-12-07 11:10:11 +0000
committerIgor Laevsky <igmyrj@gmail.com>2017-12-07 11:10:11 +0000
commite8a3475b89e7ef7538900639427cc851e0bb02ac (patch)
tree917a26bd83940636fab0c3242f9e5d084aeb25d0 /llvm/lib/FuzzMutate
parent72281a228b77796a07f0314c4f0ce081119319f1 (diff)
downloadbcm5719-llvm-e8a3475b89e7ef7538900639427cc851e0bb02ac.tar.gz
bcm5719-llvm-e8a3475b89e7ef7538900639427cc851e0bb02ac.zip
[FuzzMutate] Allow only sized pointers for the GEP instruction
Differential Revision: https://reviews.llvm.org/D40837 llvm-svn: 320032
Diffstat (limited to 'llvm/lib/FuzzMutate')
-rw-r--r--llvm/lib/FuzzMutate/Operations.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/FuzzMutate/Operations.cpp b/llvm/lib/FuzzMutate/Operations.cpp
index af2775ebcfb..92993480215 100644
--- a/llvm/lib/FuzzMutate/Operations.cpp
+++ b/llvm/lib/FuzzMutate/Operations.cpp
@@ -172,7 +172,7 @@ OpDescriptor llvm::fuzzerop::gepDescriptor(unsigned Weight) {
// TODO: Handle aggregates and vectors
// TODO: Support multiple indices.
// TODO: Try to avoid meaningless accesses.
- return {Weight, {anyPtrType(), anyIntType()}, buildGEP};
+ return {Weight, {sizedPtrType(), anyIntType()}, buildGEP};
}
static uint64_t getAggregateNumElements(Type *T) {
OpenPOWER on IntegriCloud