浏览代码

Merge branch '19h1-fixes' into 19h1-fixes-on-master

Tex Riddell 6 年之前
父节点
当前提交
0298e7a35b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/clang/lib/SPIRV/SpirvEmitter.cpp

+ 1 - 1
tools/clang/lib/SPIRV/SpirvEmitter.cpp

@@ -6549,7 +6549,7 @@ SpirvEmitter::processIntrinsicInterlockedMethod(const CallExpr *expr,
   auto *zero =
       spvBuilder.getConstantInt(astContext.UnsignedIntTy, llvm::APInt(32, 0));
   const auto *dest = expr->getArg(0);
-  const auto baseType = dest->getType();
+  const auto baseType = dest->getType()->getCanonicalTypeUnqualified();
 
   if (!baseType->isIntegerType()) {
     emitError("can only perform atomic operations on scalar integer values",