]> granicus.if.org Git - clang/commitdiff
update comment, pointed out by Gabor
authorChris Lattner <sabre@nondot.org>
Fri, 6 Nov 2009 18:10:47 +0000 (18:10 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 6 Nov 2009 18:10:47 +0000 (18:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86263 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGStmt.cpp

index 53b0567266de8aac559df52fdc753824f146a1d3..4f3fc74fcdde4b5ebc82282baf0f29dcb0b0c0b3 100644 (file)
@@ -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");