diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2020-01-14 14:06:12 +0100 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2020-01-14 14:06:37 +0100 |
| commit | df186507e1d07c3ddba091a076ba7a33dbdc5867 (patch) | |
| tree | 1a036220e7fe46703e2bc0840172068ddeffadc7 /llvm/lib/Transforms | |
| parent | bff33bd5c83b947cccb4d6cf6ebca9dc021f716b (diff) | |
| download | bcm5719-llvm-df186507e1d07c3ddba091a076ba7a33dbdc5867.tar.gz bcm5719-llvm-df186507e1d07c3ddba091a076ba7a33dbdc5867.zip | |
Make helper functions static or move them into anonymous namespaces. NFC.
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index e31023607e8..801c09a317a 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -1649,7 +1649,7 @@ Instruction *InstCombiner::narrowMathIfNoOverflow(BinaryOperator &BO) { return CastInst::Create(CastOpc, NarrowBO, BO.getType()); } -bool isMergedGEPInBounds(GEPOperator &GEP1, GEPOperator &GEP2) { +static bool isMergedGEPInBounds(GEPOperator &GEP1, GEPOperator &GEP2) { // At least one GEP must be inbounds. if (!GEP1.isInBounds() && !GEP2.isInBounds()) return false; |

