[all-commits] [llvm/llvm-project] f3d3ce: [InstCombine] Avoid a call to deprecated version o...
topperc via All-commits
all-commits at lists.llvm.org
Wed Apr 8 17:42:01 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: f3d3cec648202cde1f34b766b4d8fe147f68f1fe
https://github.com/llvm/llvm-project/commit/f3d3cec648202cde1f34b766b4d8fe147f68f1fe
Author: Craig Topper <craig.topper at intel.com>
Date: 2020-04-08 (Wed, 08 Apr 2020)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
Log Message:
-----------
[InstCombine] Avoid a call to deprecated version of CreateCall.
Passing a Value * to CreateCall has to call getPointerElementType
to find the type of the pointer.
In this case we can rely on the fact that Intrinsic::getDeclaration
returns a Function * and use that version of CreateCall.
More information about the All-commits
mailing list