From: Chris Lattner Date: Fri, 6 Nov 2009 18:10:47 +0000 (+0000) Subject: update comment, pointed out by Gabor X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49c952f853fe2d15dd9c9ff2a29c696bd18fca13;p=clang update comment, pointed out by Gabor git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86263 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index 53b0567266..4f3fc74fcd 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -284,9 +284,7 @@ void CodeGenFunction::EmitGotoStmt(const GotoStmt &S) { void CodeGenFunction::EmitIndirectGotoStmt(const IndirectGotoStmt &S) { - // Emit initial switch which will be patched up later by - // EmitIndirectSwitches(). We need a default dest, so we use the - // current BB, but this is overwritten. + // Ensure that we have an i8* for our PHI node. llvm::Value *V = Builder.CreateBitCast(EmitScalarExpr(S.getTarget()), llvm::Type::getInt8PtrTy(VMContext), "addr");