diff options
| author | Lang Hames <lhames@gmail.com> | 2018-05-24 19:07:34 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2018-05-24 19:07:34 +0000 |
| commit | 7d60b9052a4a5d7d6e2baef09ac790a88c5e2214 (patch) | |
| tree | 7b5c59be6137e4f86b347363b6d01af73c33f979 /llvm/test/ExecutionEngine/Interpreter/alias.ll | |
| parent | 80968a9aba7560d7ccad36639ec4c9586d3f461c (diff) | |
| download | bcm5719-llvm-7d60b9052a4a5d7d6e2baef09ac790a88c5e2214.tar.gz bcm5719-llvm-7d60b9052a4a5d7d6e2baef09ac790a88c5e2214.zip | |
Add handling for GlobalAliases in ExecutionEngine::getConstantValue.
Patch by Brad Moody. Thanks Brad!
https://reviews.llvm.org/D42160
llvm-svn: 333217
Diffstat (limited to 'llvm/test/ExecutionEngine/Interpreter/alias.ll')
| -rw-r--r-- | llvm/test/ExecutionEngine/Interpreter/alias.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/Interpreter/alias.ll b/llvm/test/ExecutionEngine/Interpreter/alias.ll new file mode 100644 index 00000000000..4bfdd2ce060 --- /dev/null +++ b/llvm/test/ExecutionEngine/Interpreter/alias.ll @@ -0,0 +1,14 @@ +; RUN: %lli -force-interpreter %s + +define i32 @func() { +entry: + ret i32 0 +} + +@alias = alias i32 (), i32 ()* @func + +define i32 @main() { +entry: + %call = call i32 @alias() + ret i32 %call +} |

