Browse Source

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

Ehsan Nasiri 6 năm trước cách đây
mục cha
commit
a13bb8a70c
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      tools/clang/lib/SPIRV/SPIRVEmitter.cpp

+ 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;
 }