From 6271e7a758ef875a3942bcce96a5e7154069132e Mon Sep 17 00:00:00 2001 From: Tatiana Shpeisman Date: Sat, 6 Apr 2019 19:49:38 -0700 Subject: [PATCH] Fix cond_br example. PiperOrigin-RevId: 242314071 --- mlir/g3doc/LangRef.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mlir/g3doc/LangRef.md b/mlir/g3doc/LangRef.md index e05ab86..d5f71b6 100644 --- a/mlir/g3doc/LangRef.md +++ b/mlir/g3doc/LangRef.md @@ -1382,7 +1382,8 @@ The following example illustrates a function with a conditional branch operation that targets the same block: ```mlir {.mlir} -func @select(%a : i32, %b :i32, %flag : i1) -> i32 { +func @select(i32, i32, i1) -> i32 { +^bb0(%a : i32, %b :i32, %flag : i1) : // Both targets are the same, operands differ cond_br %flag, ^bb1(%a : i32), ^bb1(%b : i32) -- 2.7.4