mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-22 13:43:37 +00:00
kernel: make check fully constexpr for broken msvc constant folding
This commit is contained in:
parent
67e983a354
commit
d8507332c1
1 changed files with 1 additions and 1 deletions
|
@ -636,7 +636,7 @@ struct KernelCore::Impl {
|
|||
constexpr size_t SecureUnknownRegionSize = 0;
|
||||
const size_t secure_unknown_size = SecureUnknownRegionSize;
|
||||
const auto secure_unknown_end_phys_addr = secure_applet_end_phys_addr + secure_unknown_size;
|
||||
if (secure_unknown_size > 0) {
|
||||
if constexpr (SecureUnknownRegionSize > 0) {
|
||||
ASSERT(memory_layout->GetPhysicalMemoryRegionTree().Insert(
|
||||
GetInteger(secure_applet_end_phys_addr), secure_unknown_size,
|
||||
KMemoryRegionType_DramKernelSecureUnknown));
|
||||
|
|
Loading…
Reference in a new issue