Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Testicular Slingshot
Alchemy Viewer
Commits
53cc2a76
Commit
53cc2a76
authored
Dec 19, 2019
by
Rye Mutt
🍞
Browse files
Fix LL_ERRS failing to crash and entering infinite loop with latest msvc update
parent
b6d762ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
indra/llcommon/llerror.cpp
View file @
53cc2a76
...
...
@@ -1464,15 +1464,14 @@ namespace LLError
}
#if LL_WINDOWS
//
VC80 wa
s optimizing the error away.
//
#pragma optimize("", off)
//
MSVC i
s optimizing the error away.
#pragma optimize("", off)
#endif
void
crashAndLoop
(
const
std
::
string
&
message
)
{
// Now, we go kaboom!
int
*
make_me_crash
=
nullptr
;
*
make_me_crash
=
0
;
*
make_me_crash
=
0xDEADBEEF
;
while
(
true
)
{
...
...
@@ -1488,7 +1487,7 @@ namespace LLError
#endif
}
#if LL_WINDOWS
//
#pragma optimize("", on)
#pragma optimize("", on)
#endif
std
::
string
utcTime
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment