Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: lib/Transforms/NaCl/ExpandVarArgs.cpp

Issue 14197004: Use unique'ed types for varargs expansion instead of non-unique named types. (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/Transforms/NaCl/expand-varargs.ll » ('j') | test/Transforms/NaCl/expand-varargs.ll » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Transforms/NaCl/ExpandVarArgs.cpp
diff --git a/lib/Transforms/NaCl/ExpandVarArgs.cpp b/lib/Transforms/NaCl/ExpandVarArgs.cpp
index cbafbc275741af9a60b8fc59715cd01131412c6e..fc5f70960a878dd0cc99041432348037b05bba45 100644
--- a/lib/Transforms/NaCl/ExpandVarArgs.cpp
+++ b/lib/Transforms/NaCl/ExpandVarArgs.cpp
@@ -230,7 +230,7 @@ static bool ExpandVarArgCall(InstType *Call, DataLayout *DL) {
// Create struct type for packing variable arguments into. We
// create this as packed for now and assume that no alignment
// padding is desired.
- StructType *VarArgsTy = StructType::create(VarArgsTypes, "vararg_call", true);
+ StructType *VarArgsTy = StructType::get(*Context, VarArgsTypes, true);
// Allocate space for the variable argument buffer. Do this at the
// start of the function so that we don't leak space if the function
« no previous file with comments | « no previous file | test/Transforms/NaCl/expand-varargs.ll » ('j') | test/Transforms/NaCl/expand-varargs.ll » ('J')

Powered by Google App Engine
This is Rietveld 408576698