소스 검색

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

Ehsan Nasiri 6 년 전
부모
커밋
a13bb8a70c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;
 }