[PATCH] D105097: [clang][AArch64][SVE] Handle PRValue under VLAT <-> VLST cast
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 30 01:17:43 PDT 2021
efriedma added inline comments.
================
Comment at: clang/lib/CodeGen/CGExprScalar.cpp:2103
+ if (const CallExpr *CE = dyn_cast<CallExpr>(E))
+ Ty = CE->getCallReturnType(CGF.getContext());
+
----------------
I don't think we need to call getCallReturnType() here. A call that returns a reference is an lvalue, and the code here expects an rvalue. So CE->getCallReturnType() is going to be the same as E->getType().
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105097/new/
https://reviews.llvm.org/D105097
More information about the cfe-commits
mailing list