components/llvm/patches/030-solaris-exception-demo.patch
author John Beck <John.Beck@Oracle.COM>
Thu, 08 Sep 2016 09:45:54 -0700
changeset 6864 45128c94429d
parent 6512 92717ce71105
permissions -rw-r--r--
24615249 work around pkgdepend issue to publish rjsmin on S11

# Miscellaneous fixes.
# Not for upstream, because we only build this in DEBUG mode
# and we neve package it.
--- examples/ExceptionDemo/ExceptionDemo.cpp	2015-09-18 14:15:45.000000000 -0700
+++ examples/ExceptionDemo/ExceptionDemo.cpp	2016-05-11 18:59:34.443949997 -0700
@@ -233,8 +233,9 @@
        i != theArgNames.size();
        ++argIndex, ++i) {
 
-    argIndex->setName(theArgNames[i]);
-    namedValues[theArgNames[i]] = argIndex;
+    std::string Name = theArgNames[i];
+    argIndex->setName(Name);
+    namedValues[Name] = &*argIndex;
   }
 
   return(ret);