Fix cond_br example.
authorTatiana Shpeisman <shpeisman@google.com>
Sun, 7 Apr 2019 02:49:38 +0000 (19:49 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 8 Apr 2019 01:22:11 +0000 (18:22 -0700)
PiperOrigin-RevId: 242314071

mlir/g3doc/LangRef.md

index e05ab86..d5f71b6 100644 (file)
@@ -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)