projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66d755b
)
Revert "[Support] Workaround compiler bug in MSVC"
author
Tom Stellard
<tstellar@redhat.com>
Tue, 26 Jul 2022 22:49:35 +0000
(15:49 -0700)
committer
Tom Stellard
<tstellar@redhat.com>
Tue, 26 Jul 2022 22:49:35 +0000
(15:49 -0700)
This reverts commit
ec8f4fd68cd401a0ba41bb160d6acce670486fab
.
This caused a failure in the mlir-windows bot.
llvm/lib/Support/NativeFormatting.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/NativeFormatting.cpp
b/llvm/lib/Support/NativeFormatting.cpp
index
e9854d0
..
8a69f75
100644
(file)
--- a/
llvm/lib/Support/NativeFormatting.cpp
+++ b/
llvm/lib/Support/NativeFormatting.cpp
@@
-262,11
+262,5
@@
size_t llvm::getDefaultPrecision(FloatStyle Style) {
case FloatStyle::Percent:
return 2; // Number of decimal places.
}
- // Workaround for MSVC bug in VS2022:
- // https://developercommunity.visualstudio.com/t/Prev-Issue---with-__assume-isnan-/1597317
- // llvm_unreachable expands to __assume(false) with MSVC which triggers the
- // bug.
-#ifndef _MSC_VER
llvm_unreachable("Unknown FloatStyle enum");
-#endif
}