diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-06 18:10:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-06 18:10:47 +0000 |
commit | 49c952f853fe2d15dd9c9ff2a29c696bd18fca13 (patch) | |
tree | 181197eb8393fac0e12a256e2f3c7ac01bd0ef0e /lib/CodeGen/CGStmt.cpp | |
parent | abbbfd960cc0978509e060741ff8cc8db32d6b5c (diff) |
update comment, pointed out by Gabor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86263 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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"); |