diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-12-02 19:20:10 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-12-02 19:20:10 +0000 |
| commit | 2cf3bd4601bbc6fc1f3ffe845eb57c2da2dff02c (patch) | |
| tree | 6c704a1a1c04abaaf72aa6d9a019103c822f0c3e /lib/Transforms/InstCombine/InstCombineCompares.cpp | |
| parent | 6449741f4c1842221757c062f4abbae7bb524ba9 (diff) | |
Notes
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineCompares.cpp')
| -rw-r--r-- | lib/Transforms/InstCombine/InstCombineCompares.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp index bfd73f4bbac5..961497fe3c2d 100644 --- a/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -634,7 +634,7 @@ static bool canRewriteGEPAsOffset(Value *Start, Value *Base, } if (!isa<IntToPtrInst>(V) && !isa<PtrToIntInst>(V) && - !isa<GEPOperator>(V) && !isa<PHINode>(V)) + !isa<GetElementPtrInst>(V) && !isa<PHINode>(V)) // We've found some value that we can't explore which is different from // the base. Therefore we can't do this transformation. return false; |
