[WebAssembly] assert(false) -> llvm_unreachable

Avoids warnings in -asserts builds.

ASTContext.cpp:4098:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]
}
^
This commit is contained in:
Benjamin Kramer 2023-02-18 09:38:18 +01:00
parent 9ce8eb0fbc
commit 7ac658a07b

View File

@ -4093,8 +4093,8 @@ QualType ASTContext::getWebAssemblyExternrefType() const {
return SingletonId;
#include "clang/Basic/WebAssemblyReferenceTypes.def"
}
assert(false &&
"shouldn't try to generate type externref outside WebAssembly target");
llvm_unreachable(
"shouldn't try to generate type externref outside WebAssembly target");
}
/// getScalableVectorType - Return the unique reference to a scalable vector