components/llvm/patches/030-solaris-exception-demo.patch
changeset 6512 92717ce71105
equal deleted inserted replaced
6511:d283aa33e131 6512:92717ce71105
       
     1 # Miscellaneous fixes.
       
     2 # Not for upstream, because we only build this in DEBUG mode
       
     3 # and we neve package it.
       
     4 --- examples/ExceptionDemo/ExceptionDemo.cpp	2015-09-18 14:15:45.000000000 -0700
       
     5 +++ examples/ExceptionDemo/ExceptionDemo.cpp	2016-05-11 18:59:34.443949997 -0700
       
     6 @@ -233,8 +233,9 @@
       
     7         i != theArgNames.size();
       
     8         ++argIndex, ++i) {
       
     9  
       
    10 -    argIndex->setName(theArgNames[i]);
       
    11 -    namedValues[theArgNames[i]] = argIndex;
       
    12 +    std::string Name = theArgNames[i];
       
    13 +    argIndex->setName(Name);
       
    14 +    namedValues[Name] = &*argIndex;
       
    15    }
       
    16  
       
    17    return(ret);