mirror of
https://github.com/intel/llvm.git
synced 2026-02-06 15:18:53 +08:00
Fix test/Parser/argument_qualified.c
llvm-svn: 39316
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user