diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-04-02 08:55:10 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-04-02 08:55:10 +0000 | 
| commit | 11d2b2d2bb706fca0656f2760839721bb7f6cb6f (patch) | |
| tree | d374cdca417e76f1bf101f139dba2db1d10ee8f7 /lib/CodeGen/CGExprAgg.cpp | |
| parent | c0c7bca4e5b8d12699dc93a0da49e9e4bb79671b (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprAgg.cpp | 7 | 
1 files changed, 1 insertions, 6 deletions
| diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index 4847ca3f82483..e2e2cd0504199 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -333,8 +333,7 @@ void AggExprEmitter::VisitUnaryAddrOf(const UnaryOperator *E) {    llvm::Value *FuncPtr;    if (MD->isVirtual()) { -    int64_t Index =  -      CGF.CGM.getVtableInfo().getMethodVtableIndex(MD); +    int64_t Index = CGF.CGM.getVTables().getMethodVtableIndex(MD);      // Itanium C++ ABI 2.3:      //   For a non-virtual function, this field is a simple function pointer.  @@ -500,10 +499,6 @@ AggExprEmitter::VisitCXXConstructExpr(const CXXConstructExpr *E) {  void AggExprEmitter::VisitCXXExprWithTemporaries(CXXExprWithTemporaries *E) {    llvm::Value *Val = DestPtr; -  if (!Val) { -    // Create a temporary variable. -    Val = CGF.CreateMemTemp(E->getType(), "tmp"); -  }    CGF.EmitCXXExprWithTemporaries(E, Val, VolatileDest, IsInitializer);  } | 
