summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-08-11 15:23:56 +0000
committerSanjay Patel <spatel@rotateright.com>2016-08-11 15:23:56 +0000
commit38ae83de381f3fa935d3517f377326780cd9753e (patch)
tree6ae7e3b4af0ed8c2765b328e4038090a50d8db26 /llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
parenta26adfb6a8c3468960ce25e036cadd2db8055e97 (diff)
downloadbcm5719-llvm-38ae83de381f3fa935d3517f377326780cd9753e.tar.gz
bcm5719-llvm-38ae83de381f3fa935d3517f377326780cd9753e.zip
fix comment; NFC
llvm-svn: 278342
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
index 6d800a4c026..c026c498957 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -2620,10 +2620,11 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
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();
OpenPOWER on IntegriCloud