Commit 3427f219 authored by Ivan Egorov's avatar Ivan Egorov Committed by Facebook GitHub Bot

Avoid VLA in DWARF symbolizer

Summary: Variable length arrays are an extension to C++ standard that is not universally supported. Use a fixed size array instead.

Differential Revision: D23563131

fbshipit-source-id: 743e65838e83286ea28d8de10cd9d4416e6e4e91
parent ca5024ee
......@@ -553,7 +553,8 @@ bool Dwarf::findLocation(
std::min<size_t>(
Dwarf::kMaxInlineLocationInfoPerFrame, inlineFrames.size()) +
1;
detail::CallLocation callLocations[size];
detail::CallLocation
callLocations[Dwarf::kMaxInlineLocationInfoPerFrame + 1];
size_t numFound = 0;
findInlinedSubroutineDieForAddress(
cu,
......
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