IR: Split Metadata from Value
[oota-llvm.git] / lib / Transforms / Utils / AddDiscriminators.cpp
index f8e5af5c768b8f0d9814eb1937fe8a42ba1f147f..820544bcebf0c1f7e3fc92c46ed31d558d50a25e 100644 (file)
@@ -167,7 +167,7 @@ bool AddDiscriminators::runOnFunction(Function &F) {
   bool Changed = false;
   Module *M = F.getParent();
   LLVMContext &Ctx = M->getContext();
-  DIBuilder Builder(*M);
+  DIBuilder Builder(*M, /*AllowUnresolved*/ false);
 
   // Traverse all the blocks looking for instructions in different
   // blocks that are at the same file:line location.