Lang Hames 3bf43acb9a [Support] Make ErrorAsOutParameter take an Error* rather than an Error&.
This allows ErrorAsOutParameter to work better with "optional" errors. For
example, consider a function where for certain input values it is known that
the function can't fail. This can now be written as:

Result foo(Arg X, Error *Err) {
  ErrorAsOutParameter EAO(Err);

  if (<Error Condition>) {
    if (Err)
      *Err = <report error>;
    else
      llvm_unreachable("Unexpected failure!");
  }
}

Rather than having to construct an ErrorAsOutParameter under every conditional
where Err is known to be non-null.

llvm-svn: 276430
2016-07-22 16:11:25 +00:00
..
2016-01-28 20:36:46 +00:00
2015-06-19 01:53:21 +00:00
2016-04-18 09:17:29 +00:00
2014-06-08 22:29:17 +00:00
2014-09-15 21:51:49 +00:00
2015-11-18 00:31:34 +00:00
2014-12-04 16:59:36 +00:00
2014-12-04 16:59:36 +00:00
2016-04-18 09:17:29 +00:00
2016-04-18 09:17:29 +00:00