forked from OSchip/llvm-project
NFC: Fix warning for uninitialized field.
PiperOrigin-RevId: 270704572
This commit is contained in:
parent
59e3b30af0
commit
4b6b58ec0f
|
@ -114,6 +114,8 @@ private:
|
|||
/// is the name of a pass, the InnerPipeline is empty, since passes cannot
|
||||
/// contain inner pipelines.
|
||||
struct PipelineElement {
|
||||
PipelineElement(StringRef name) : name(name), registryEntry(nullptr) {}
|
||||
|
||||
StringRef name;
|
||||
const PassRegistryEntry *registryEntry;
|
||||
std::vector<PipelineElement> innerPipeline;
|
||||
|
@ -178,7 +180,7 @@ LogicalResult TextualPipeline::parsePipelineText(StringRef text,
|
|||
for (;;) {
|
||||
std::vector<PipelineElement> &pipeline = *pipelineStack.back();
|
||||
size_t pos = text.find_first_of(",()");
|
||||
pipeline.push_back({text.substr(0, pos).trim(), {}});
|
||||
pipeline.emplace_back(/*name=*/text.substr(0, pos).trim());
|
||||
|
||||
// If we have a single terminating name, we're done.
|
||||
if (pos == text.npos)
|
||||
|
|
Loading…
Reference in New Issue