Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/Transforms/WholeProgramDevirt/bad-read-from-vtable.ll
; RUN: opt -S -wholeprogramdevirt %s | FileCheck %s | ; RUN: opt -S -wholeprogramdevirt -whole-program-visibility %s | FileCheck %s | ||||
target datalayout = "e-p:64:64" | target datalayout = "e-p:64:64" | ||||
target triple = "x86_64-unknown-linux-gnu" | target triple = "x86_64-unknown-linux-gnu" | ||||
@vt1 = constant [2 x i8*] [i8* zeroinitializer, i8* bitcast (void (i8*)* @vf to i8*)], !type !0 | @vt1 = constant [2 x i8*] [i8* zeroinitializer, i8* bitcast (void (i8*)* @vf to i8*)], !type !0 | ||||
@vt2 = constant i8* bitcast (void (i8*)* @vf to i8*), !type !1 | @vt2 = constant i8* bitcast (void (i8*)* @vf to i8*), !type !1 | ||||
define void @vf(i8* %this) { | define void @vf(i8* %this) { | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |