DebugInfo: Drop rest of DIDescriptor subclasses
[oota-llvm.git] / unittests / Transforms / Utils / Cloning.cpp
index d778903cbae8d3dc3ae915880d338b920fca1a12..35bdd3684ab4b105f96a38d5ff912583f4f546f5 100644 (file)
@@ -254,9 +254,9 @@ protected:
     // Create a local variable around the alloca
     auto *IntType =
         DBuilder.createBasicType("int", 32, 0, dwarf::DW_ATE_signed);
-    DIExpression E = DBuilder.createExpression();
-    DIVariable Variable = DBuilder.createLocalVariable(
-      dwarf::DW_TAG_auto_variable, Subprogram, "x", File, 5, IntType, true);
+    auto *E = DBuilder.createExpression();
+    auto *Variable = DBuilder.createLocalVariable(
+        dwarf::DW_TAG_auto_variable, Subprogram, "x", File, 5, IntType, true);
     auto *DL = MDLocation::get(Subprogram->getContext(), 5, 0, Subprogram);
     DBuilder.insertDeclare(Alloca, Variable, E, DL, Store);
     DBuilder.insertDbgValueIntrinsic(AllocaContent, 0, Variable, E, DL,