Browse Source

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

Tex Riddell 6 years ago
parent
commit
0298e7a35b
1 changed files with 1 additions and 1 deletions
  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",