We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d07d63d commit eeb54e4Copy full SHA for eeb54e4
clang/lib/CodeGen/CGCall.cpp
@@ -5163,9 +5163,6 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
5163
}
5164
5165
if (IRFunctionArgs.hasSRetArg()) {
5166
- // If the caller allocated the return slot, it is possible that the
5167
- // alloca was AS casted to the default as, so we ensure the cast is
5168
- // stripped before binding to the sret arg, which is in the allocaAS.
5169
IRCallArgs[IRFunctionArgs.getSRetArgNo()] =
5170
getAsNaturalPointerTo(SRetPtr, RetTy);
5171
} else if (RetAI.isInAlloca()) {
0 commit comments