GCC fix: wrap CHECK asm in lambda to support constexpr calls
CHECK() implementation for arm, arm64, x86 and x64 includes asm() statements. Recently added bounds checks using it on constexpr methods are breaking GCC build, as GCC follows more strictly C++14/11 standard, that explicitely forbids calling asm from constexpr. But GCC does not complain if the asm statement is not directly called from constexpr, but through a function call. So wrap the GCC asm calls for IMMEDIATE_CRASH in a lambda function. Bug: 821357 Change-Id: I9b806fa09eda872fb2b8e81cc79d8a4ea20e3e0b Reviewed-on: https://chromium-review.googlesource.com/960861 Commit-Queue: José Dapena Paz <jose.dapena@lge.com> Reviewed-by:Mark Mentovai <mark@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#543887}
Showing
Please register or sign in to comment