mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-07 18:10:24 +00:00
[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:
parent
9ce8eb0fbc
commit
7ac658a07b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user