浏览代码

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