Callback was not executed on OS X when it was a function.

llvm-svn: 51814
This commit is contained in:
Mikhail Glushenkov 2008-05-31 13:43:21 +00:00
parent 666d664595
commit f970edf9b7
1 changed files with 1 additions and 1 deletions

View File

@ -910,7 +910,7 @@ void EmitCaseTest(const DagInit& d, const char* IndentLevel,
// void F(Init* Statement, const char* IndentLevel, std::ostream& O).
template <typename F>
void EmitCaseConstructHandler(const DagInit* d, const char* IndentLevel,
const F& Callback, bool EmitElseIf,
F Callback, bool EmitElseIf,
const GlobalOptionDescriptions& OptDescs,
std::ostream& O) {
assert(d->getOperator()->getAsString() == "case");