projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Verifier: Check operands of MDType subclasses and MDCompileUnit
[oota-llvm.git]
/
lib
/
IR
/
DIBuilder.cpp
diff --git
a/lib/IR/DIBuilder.cpp
b/lib/IR/DIBuilder.cpp
index 4b837af9d44b3b5cc372bd88e3ea3e9f26cfdf1a..dfbc1315218ba50bd0b3d22425ad8aba127319a8 100644
(file)
--- a/
lib/IR/DIBuilder.cpp
+++ b/
lib/IR/DIBuilder.cpp
@@
-269,8
+269,8
@@
DIDerivedType DIBuilder::createReferenceType(unsigned Tag, DIType RTy) {
DIDerivedType DIBuilder::createTypedef(DIType Ty, StringRef Name, DIFile File,
unsigned LineNo, DIDescriptor Context) {
DIDerivedType DIBuilder::createTypedef(DIType Ty, StringRef Name, DIFile File,
unsigned LineNo, DIDescriptor Context) {
- return MDDerivedType::get(VMContext, dwarf::DW_TAG_typedef, Name,
-
File.getFileNode(),
LineNo,
+ return MDDerivedType::get(VMContext, dwarf::DW_TAG_typedef, Name,
File,
+ LineNo,
DIScope(getNonCompileUnitScope(Context)).getRef(),
Ty.getRef(), 0, 0, 0, 0);
}
DIScope(getNonCompileUnitScope(Context)).getRef(),
Ty.getRef(), 0, 0, 0, 0);
}