forked from OSchip/llvm-project
Fix an example that used the old SetCondInst instruction.
llvm-svn: 32681
This commit is contained in:
parent
c6be386754
commit
8810d370af
|
@ -229,7 +229,7 @@ in a single function using LLVM in the following way: </p>
|
||||||
<pre>
|
<pre>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
BasicBlock*
|
BasicBlock*
|
||||||
MyCompiler::handle_if( BasicBlock* bb, SetCondInst* condition )
|
MyCompiler::handle_if( BasicBlock* bb, ICmpInst* condition )
|
||||||
{
|
{
|
||||||
// Create the blocks to contain code in the structure of if/then/else
|
// Create the blocks to contain code in the structure of if/then/else
|
||||||
BasicBlock* then_bb = new BasicBlock();
|
BasicBlock* then_bb = new BasicBlock();
|
||||||
|
|
Loading…
Reference in New Issue