|
@@ -191,7 +191,8 @@ public:
|
|
|
typeHandler(astCtx, spvCtx, &debugBinary, &annotationsBinary,
|
|
|
&typeConstantBinary,
|
|
|
[this]() -> uint32_t { return takeNextId(); }),
|
|
|
- debugFileId(0), debugLine(0), debugColumn(0) {}
|
|
|
+ debugFileId(0), debugLine(0), debugColumn(0),
|
|
|
+ lastOpWasMergeInst(false) {}
|
|
|
|
|
|
// Visit different SPIR-V constructs for emitting.
|
|
|
bool visit(SpirvModule *, Phase phase);
|
|
@@ -339,6 +340,8 @@ private:
|
|
|
uint32_t debugLine;
|
|
|
// The last debug column number information emitted by OpLine.
|
|
|
uint32_t debugColumn;
|
|
|
+ // True if the last emitted instruction was OpSelectionMerge or OpLoopMerge.
|
|
|
+ bool lastOpWasMergeInst;
|
|
|
};
|
|
|
|
|
|
} // namespace spirv
|