diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-04-17 04:30:43 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-04-17 04:30:43 +0000 |
commit | 99042473d075b10c275f357682aec8bbb8fc1667 (patch) | |
tree | 6d13f234a2995a691c12195edff3576b4d62739b /llvm/lib/Transforms | |
parent | 93f53c426275ebe6fad14d79deca16f70365c206 (diff) | |
download | bcm5719-llvm-99042473d075b10c275f357682aec8bbb8fc1667.tar.gz bcm5719-llvm-99042473d075b10c275f357682aec8bbb8fc1667.zip |
Fix a typo in rL265762
I accidentally replaced `mayBeOverridden` with `!isInterposable`.
Remove the negation and add a test case that would've caught this.
Many thanks to HÃ¥kan Hjort for spotting this!
llvm-svn: 266551
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp index d27f1071d67..c8556638cec 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp @@ -640,7 +640,7 @@ static bool isObjectSizeLessThanOrEq(Value *V, uint64_t MaxSize, } if (GlobalAlias *GA = dyn_cast<GlobalAlias>(P)) { - if (!GA->isInterposable()) + if (GA->isInterposable()) return false; Worklist.push_back(GA->getAliasee()); continue; |