[cfe-commits] r39316 - in /cfe/cfe/trunk: AST/SemaDecl.cpp Sema/SemaDecl.cpp
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:42:58 PDT 2007
Author: sabre
Date: Wed Jul 11 11:42:58 2007
New Revision: 39316
URL: http://llvm.org/viewvc/llvm-project?rev=39316&view=rev
Log:
Fix test/Parser/argument_qualified.c
Modified:
cfe/cfe/trunk/AST/SemaDecl.cpp
cfe/cfe/trunk/Sema/SemaDecl.cpp
Modified: cfe/cfe/trunk/AST/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/SemaDecl.cpp?rev=39316&r1=39315&r2=39316&view=diff
==============================================================================
--- cfe/cfe/trunk/AST/SemaDecl.cpp (original)
+++ cfe/cfe/trunk/AST/SemaDecl.cpp Wed Jul 11 11:42:58 2007
@@ -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 @@
}
- 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) {
Modified: cfe/cfe/trunk/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Sema/SemaDecl.cpp?rev=39316&r1=39315&r2=39316&view=diff
==============================================================================
--- cfe/cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/cfe/trunk/Sema/SemaDecl.cpp Wed Jul 11 11:42:58 2007
@@ -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 @@
}
- 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) {
More information about the cfe-commits
mailing list