summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2014-07-10 01:30:39 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2014-07-10 01:30:39 +0000
commit2e28edf8e1bde1c3d1971758ed9cc3730bf1d61e (patch)
tree9ab55bf394148c4025826260c0a02f80b4ae3e80 /llvm/test
parent8b4e1e2c8d08c7ab186ec2ca3c151fcfd442969a (diff)
downloadbcm5719-llvm-2e28edf8e1bde1c3d1971758ed9cc3730bf1d61e.tar.gz
bcm5719-llvm-2e28edf8e1bde1c3d1971758ed9cc3730bf1d61e.zip
[dfsan] Handle bitcast aliases.
llvm-svn: 212668
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Instrumentation/DataFlowSanitizer/prefix-rename.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Instrumentation/DataFlowSanitizer/prefix-rename.ll b/llvm/test/Instrumentation/DataFlowSanitizer/prefix-rename.ll
index 1a5646074d2..f3c36b17b38 100644
--- a/llvm/test/Instrumentation/DataFlowSanitizer/prefix-rename.ll
+++ b/llvm/test/Instrumentation/DataFlowSanitizer/prefix-rename.ll
@@ -8,7 +8,15 @@ module asm ".symver f1,f@@version1"
; CHECK: @"dfs$f2" = alias {{.*}} @"dfs$f1"
@f2 = alias void ()* @f1
+; CHECK: @"dfs$g2" = alias {{.*}} @"dfs$g1"
+@g2 = alias bitcast (void (i8*)* @g1 to void (i16*)*)
+
; CHECK: define void @"dfs$f1"
define void @f1() {
ret void
}
+
+; CHECK: define void @"dfs$g1"
+define void @g1(i8*) {
+ ret void
+}
OpenPOWER on IntegriCloud