mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-12 14:46:08 +00:00
tint: fix clang-cl compilation
* Disabling warnings was using the MSVC codepath * Required to disable a float comparison on lexer.cc for clang Change-Id: Ie3123593ebba2bffe34bff490ff76d5bdbd7d40d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116240 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
f3f813eb0c
commit
0fa5fb16bd
@@ -405,11 +405,13 @@ Token Lexer::try_float() {
|
||||
}
|
||||
}
|
||||
|
||||
TINT_BEGIN_DISABLE_WARNING(FLOAT_EQUAL);
|
||||
if (value == HUGE_VAL || -value == HUGE_VAL) {
|
||||
return {Token::Type::kError, source, "value cannot be represented as 'abstract-float'"};
|
||||
} else {
|
||||
return {Token::Type::kFloatLiteral, source, value};
|
||||
}
|
||||
TINT_END_DISABLE_WARNING(FLOAT_EQUAL);
|
||||
}
|
||||
|
||||
Token Lexer::try_hex_float() {
|
||||
|
||||
Reference in New Issue
Block a user