mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 15:51:54 +00:00
move PR1604 here.
llvm-svn: 57582
This commit is contained in:
parent
4ccc775d89
commit
866578b51b
@ -954,3 +954,20 @@ should remove it, but it doesn't apply to memory objects.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
Better mod/ref analysis for scanf would allow us to eliminate the vtable and a
|
||||
bunch of other stuff from this example (see PR1604):
|
||||
|
||||
#include <cstdio>
|
||||
struct test {
|
||||
int val;
|
||||
virtual ~test() {}
|
||||
};
|
||||
|
||||
int main() {
|
||||
test t;
|
||||
std::scanf("%d", &t.val);
|
||||
std::printf("%d\n", t.val);
|
||||
}
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user