diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2017-02-10 22:26:35 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2017-02-10 22:26:35 +0000 |
commit | 03ab8a366e46b2c85a63f6561335a129eea8251c (patch) | |
tree | 13c82ec1918984bdf01ccb6f7eecf409c39f2a40 /llvm/lib | |
parent | 5b53a2f2928bbbf397bfa4f4126ecc7805314dfc (diff) | |
download | bcm5719-llvm-03ab8a366e46b2c85a63f6561335a129eea8251c.tar.gz bcm5719-llvm-03ab8a366e46b2c85a63f6561335a129eea8251c.zip |
[InstCombine] Move class into anonymous namespace. NFC.
This is necessary to avoid warnings from GCC.
InstCombineLoadStoreAlloca.cpp:238:7: error: 'PointerReplacer' declared
with greater visibility than the type of its field 'PointerReplacer::IC'
llvm-svn: 294794
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp index dec998cca0b..d9e83f6516d 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp @@ -225,6 +225,7 @@ static Instruction *simplifyAllocaArraySize(InstCombiner &IC, AllocaInst &AI) { return nullptr; } +namespace { // If I and V are pointers in different address space, it is not allowed to // use replaceAllUsesWith since I and V have different types. A // non-target-specific transformation should not use addrspacecast on V since @@ -249,6 +250,7 @@ private: MapVector<Value *, Value *> WorkMap; InstCombiner &IC; }; +} // end anonymous namespace void PointerReplacer::findLoadAndReplace(Instruction &I) { for (auto U : I.users()) { |