[infer][backend] Do not create abduced var for addresses of local variables that are marked as Aundef
Reviewed By: jeremydubreil Differential Revision: D5343493 fbshipit-source-id: 12354e2master
parent
10f1969bcf
commit
77c56de7a9
@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright (c) 2017 - present Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
void external_func(int* const*);
|
||||
|
||||
int const_local_no_abduce(int* p) {
|
||||
external_func(&p);
|
||||
return p ? *p : 0;
|
||||
// We shouldn't get a stack address escape warning here
|
||||
}
|
Loading…
Reference in new issue