Fix test/Parser/argument_qualified.c

llvm-svn: 39316
This commit is contained in:
Chris Lattner 2007-01-27 06:24:01 +00:00
parent a4792c1e64
commit 38047f9e23
2 changed files with 6 additions and 2 deletions

View File

@ -20,6 +20,7 @@
#include "clang/Parse/Scope.h"
#include "clang/Lex/IdentifierTable.h"
#include "clang/Basic/LangOptions.h"
#include "llvm/ADT/SmallSet.h"
using namespace llvm;
using namespace clang;
@ -153,7 +154,8 @@ Sema::ParseParamDeclarator(DeclaratorChunk &FTI, unsigned ArgNo,
}
VarDecl *New = new VarDecl(PI.IdentLoc, II, static_cast<Type*>(PI.TypeInfo));
VarDecl *New = new VarDecl(PI.IdentLoc, II,
TypeRef::getFromOpaquePtr(PI.TypeInfo));
// If this has an identifier, add it to the scope stack.
if (II) {

View File

@ -20,6 +20,7 @@
#include "clang/Parse/Scope.h"
#include "clang/Lex/IdentifierTable.h"
#include "clang/Basic/LangOptions.h"
#include "llvm/ADT/SmallSet.h"
using namespace llvm;
using namespace clang;
@ -153,7 +154,8 @@ Sema::ParseParamDeclarator(DeclaratorChunk &FTI, unsigned ArgNo,
}
VarDecl *New = new VarDecl(PI.IdentLoc, II, static_cast<Type*>(PI.TypeInfo));
VarDecl *New = new VarDecl(PI.IdentLoc, II,
TypeRef::getFromOpaquePtr(PI.TypeInfo));
// If this has an identifier, add it to the scope stack.
if (II) {