================
@@ -4567,6 +4567,11 @@ QualType ASTContext::getWebAssemblyExternrefType() const 
{
 /// type.
 QualType ASTContext::getScalableVectorType(QualType EltTy, unsigned NumElts,
                                            unsigned NumFields) const {
+  auto K = llvm::ScalableVecTyKey{
+      reinterpret_cast<uintptr_t>(EltTy.getAsOpaquePtr()), NumElts, NumFields};
----------------
paulwalker-arm wrote:

My knowledge here is not great, is it safe to assume the opaque ptr is unique? 
Why not use QualType directly.  I can see this done in other places (e.g. 
NullableQualTypeDenseMapInfo).

https://github.com/llvm/llvm-project/pull/160108
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to