Commit 0d6a706b authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

Allow building with -Wgnu-conditional-omitted-operand

Summary: Which warns about the use of a ternary statement with the first operand omitted. This is a GCC extension and MSVC does not support it, so eliminate the last use of it.

Reviewed By: yfeldblum

Differential Revision: D4309989

fbshipit-source-id: 04c968708e47f8cb707fd0892e8780bc676df0de
parent 811bad8a
......@@ -78,7 +78,7 @@ void SymbolizedFrame::set(const std::shared_ptr<ElfFile>& file,
}
Symbolizer::Symbolizer(ElfCacheBase* cache, Dwarf::LocationInfoMode mode)
: cache_(cache ?: defaultElfCache()), mode_(mode) {
: cache_(cache ? cache : defaultElfCache()), mode_(mode) {
}
void Symbolizer::symbolize(const uintptr_t* addresses,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment