diff options
author | David Bolvansky <david.bolvansky@gmail.com> | 2018-10-13 15:21:55 +0000 |
---|---|---|
committer | David Bolvansky <david.bolvansky@gmail.com> | 2018-10-13 15:21:55 +0000 |
commit | e8b3bba71765b6d6dbd9e8ad8911327b47c05366 (patch) | |
tree | 82cc09465f39af0c4e28712bdd8825e4b8e8afa4 /llvm/lib/Transforms/Scalar | |
parent | 1c2051ead7fa9eaee3f7e21b5e7cf4915a7232b3 (diff) | |
download | bcm5719-llvm-e8b3bba71765b6d6dbd9e8ad8911327b47c05366.tar.gz bcm5719-llvm-e8b3bba71765b6d6dbd9e8ad8911327b47c05366.zip |
[InstCombine] Fixed crash with aliased functions
Summary: Fixes PR39177
Reviewers: spatel, jbuening
Reviewed By: jbuening
Subscribers: jbuening, llvm-commits
Differential Revision: https://reviews.llvm.org/D53129
llvm-svn: 344454
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp index 68abf9719a9..9a45551f64b 100644 --- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp +++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp @@ -931,7 +931,7 @@ bool LoopIdiomRecognize::processLoopStridedStore( Value *MSP = M->getOrInsertFunction("memset_pattern16", Builder.getVoidTy(), Int8PtrTy, Int8PtrTy, IntPtr); - inferLibFuncAttributes(*M->getFunction("memset_pattern16"), *TLI); + inferLibFuncAttributes(M->getFunction("memset_pattern16"), *TLI); // Otherwise we should form a memset_pattern16. PatternValue is known to be // an constant array of 16-bytes. Plop the value into a mergable global. |