]> granicus.if.org Git - clang/commit
Work around a problem with a static helper's formulation in release
authorChandler Carruth <chandlerc@gmail.com>
Tue, 12 Jul 2011 08:58:26 +0000 (08:58 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 12 Jul 2011 08:58:26 +0000 (08:58 +0000)
commita98742c32c159a8c76f842947c02a79c530a1d4b
tree16938292647624cd2f1253352a421e9fcdbee255
parent701d1e77aca7e86348386fdeadcd56ca650f95ad
Work around a problem with a static helper's formulation in release
builds introduced in r134972:

lib/CodeGen/CGExpr.cpp:1294:7: error: no matching function for call to 'EmitBitCastOfLValueToProperType'
lib/CodeGen/CGExpr.cpp:1278:1: note: candidate function not viable: no known conversion from 'CGBuilderTy' (aka 'IRBuilder<false>') to 'llvm::IRBuilder<> &' for 1st argument

This fixes the issue by passing CodeGenFunction on down, and using its
builder directly rather than passing just the builder down.

This may not be the best / cleanest fix, Chris please review. It at
least fixes builds.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134977 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp