2
0
Эх сурвалжийг харах

[spirv] FunctionCall should inherit alias/rvalue features from function.

Ehsan Nasiri 6 жил өмнө
parent
commit
a13bb8a70c

+ 2 - 0
tools/clang/lib/SPIRV/SPIRVEmitter.cpp

@@ -2153,6 +2153,8 @@ SpirvInstruction *SPIRVEmitter::processCall(const CallExpr *callExpr) {
   // Inherit the SpirvEvalInfo from the function definition
   // TODO (ehsan): Verify this is OK.
   // return declIdMapper.getDeclEvalInfo(callee).setResultId(retVal);
+  retVal->setContainsAliasComponent(func->constainsAliasComponent());
+  retVal->setRValue(func->isRValue());
   return retVal;
 }