[llvm] r278342 - fix comment; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 08:23:56 PDT 2016
Author: spatel
Date: Thu Aug 11 10:23:56 2016
New Revision: 278342
URL: http://llvm.org/viewvc/llvm-project?rev=278342&view=rev
Log:
fix comment; NFC
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=278342&r1=278341&r2=278342&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Thu Aug 11 10:23:56 2016
@@ -2620,10 +2620,11 @@ bool InstCombiner::transformConstExprCas
auto *Callee = dyn_cast<Function>(CS.getCalledValue()->stripPointerCasts());
if (!Callee)
return false;
- // The prototype of thunks are a lie, don't try to directly call such
- // functions.
+
+ // The prototype of a thunk is a lie. Don't directly call such a function.
if (Callee->hasFnAttribute("thunk"))
return false;
+
Instruction *Caller = CS.getInstruction();
const AttributeSet &CallerPAL = CS.getAttributes();
More information about the llvm-commits
mailing list