From: Junyan He <[email protected]>
Signed-off-by: Junyan He <[email protected]>
---
backend/src/ir/function.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/backend/src/ir/function.cpp b/backend/src/ir/function.cpp
index 00fe97c..27ec78f 100644
--- a/backend/src/ir/function.cpp
+++ b/backend/src/ir/function.cpp
@@ -107,10 +107,12 @@ namespace ir {
// Insert the patched branch instruction
if (bra.isPredicated() == true) {
- const Instruction newBra = BRA(newIndex, bra.getPredicateIndex());
+ Instruction newBra = BRA(newIndex, bra.getPredicateIndex());
+ newBra.DBGInfo = insn.DBGInfo;
newBra.replace(&insn);
} else {
- const Instruction newBra = BRA(newIndex);
+ Instruction newBra = BRA(newIndex);
+ newBra.DBGInfo = insn.DBGInfo;
newBra.replace(&insn);
}
});
--
1.9.1
_______________________________________________
Beignet mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/beignet