[LLVMbugs] [Bug 14576] trap generated in code that shouldn't trap

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 11 11:21:50 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14576

Rafael Ávila de Espíndola <rafael.espindola at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Rafael Ávila de Espíndola <rafael.espindola at gmail.com> 2012-12-11 13:21:50 CST ---
This patch removes the calls to llvm.trap:

--- bind.h    2012-12-11 10:52:26.000000000 -0500
+++ newbind.h    2012-12-11 14:21:46.928665479 -0500
@@ -445,6 +445,7 @@
                 args.count,
                 args.types,
                
reinterpret_cast<internal::GenericFunction>(&internal::raw_constructor<ClassType,
ConstructorArgs...>));
+            return *this;
         }

         template<typename ReturnType, typename... Args>
@@ -557,6 +558,7 @@
                 }
                 new(get()) T(v);
                 initialized = true;
+                return *this;
             }

         private:

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list