[PATCH] D16937: Add icmp and conditional branches in the C API echo test.

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 9 14:24:17 PST 2016


joker.eph added inline comments.

================
Comment at: tools/llvm-c-test/echo.cpp:230
@@ +229,3 @@
+        LLVMValueRef Then = LLVMGetOperand(Src, 2);
+        LLVMBasicBlockRef ThenBB = DeclareBB(LLVMValueAsBasicBlock(Then));
+        Dst = LLVMBuildCondBr(Builder, Cond, ThenBB, ElseBB);
----------------
It seems to me that "Then" and "Else" are reversed?


http://reviews.llvm.org/D16937





More information about the llvm-commits mailing list