forked from OSchip/llvm-project
parent
24910765e2
commit
1f6f5f1df9
|
@ -1,5 +1,6 @@
|
|||
; RUN: opt -S -argpromotion < %s | FileCheck %s
|
||||
; RUN: opt -S -passes=argpromotion < %s | FileCheck %s
|
||||
; RUN: opt -S -debugify -o /dev/null < %s
|
||||
target triple = "x86_64-pc-windows-msvc"
|
||||
|
||||
define internal void @callee(i8*) {
|
||||
|
|
|
@ -47,7 +47,8 @@ bool applyDebugifyMetadata(Module &M) {
|
|||
// Get a DIType which corresponds to Ty.
|
||||
DenseMap<uint64_t, DIType *> TypeCache;
|
||||
auto getCachedDIType = [&](Type *Ty) -> DIType * {
|
||||
uint64_t Size = M.getDataLayout().getTypeAllocSizeInBits(Ty);
|
||||
uint64_t Size =
|
||||
Ty->isSized() ? M.getDataLayout().getTypeAllocSizeInBits(Ty) : 0;
|
||||
DIType *&DTy = TypeCache[Size];
|
||||
if (!DTy) {
|
||||
std::string Name = "ty" + utostr(Size);
|
||||
|
|
Loading…
Reference in New Issue