From b50196413ab9af7c815cd2d48e4ef5e3558c61b6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 5 Nov 2007 17:52:04 +0000 Subject: [PATCH] fix typo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43717 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/tutorial/LangImpl5.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/LangImpl5.html b/docs/tutorial/LangImpl5.html index 8f31cbfe92b..a1146ed263b 100644 --- a/docs/tutorial/LangImpl5.html +++ b/docs/tutorial/LangImpl5.html @@ -407,7 +407,7 @@ violate this rule, the verifier will emit an error.

The final line here is quite subtle, but is very important. The basic issue is that when we create the Phi node in the merge block, we need to set up the block/value pairs that indicate how the Phi will work. Importantly, the Phi -node expects to have an extry for each predecessor of the block in the CFG. Why +node expects to have an entry for each predecessor of the block in the CFG. Why then are we getting the current block when we just set it to ThenBB 5 lines above? The problem is that the "Then" expression may actually itself change the block that the Builder is emitting into if, for example, it contains a nested -- 2.34.1