[PATCH] D79277: [Attributor] Bitcast constant to the returned value type if it has different type

Sergey Dmitriev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 17:37:16 PDT 2020


sdmitriev added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/AttributorAttributes.cpp:4538
+              if (C->getType() != RI->getReturnValue()->getType())
+                C = ConstantExpr::getBitCast(C,
+                                             RI->getReturnValue()->getType());
----------------
I probably should not change captured C. I will upload an updated patch.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79277/new/

https://reviews.llvm.org/D79277





More information about the llvm-commits mailing list