mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
move PR1604 here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57582 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f4fee2a976
commit
db03983238
@ -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…
Reference in New Issue
Block a user